-
Nov 7th, 2008, 07:43 PM
#1
Thread Starter
Member
how to get system date (VB.Net 2005))
i want to get the system date to this day1 variable. how shoud i do that. Please help me
-
Nov 7th, 2008, 07:47 PM
#2
Re: how to get system date (VB.Net 2005))
Date.Now is current date and time. Date.Today is current date.
-
Nov 7th, 2008, 07:56 PM
#3
Thread Starter
Member
Re: how to get system date (VB.Net 2005))
-
Nov 7th, 2008, 08:14 PM
#4
Re: how to get system date (VB.Net 2005))
Cool. Don't forget to mark your thread [Resolved] using the Thread Tools menu.
-
Jul 16th, 2013, 11:45 PM
#5
New Member
Re: how to get system date (VB.Net 2005))
Do anyone know how i can change system time with a text box? i only need to change the year.
i am completly blank.
-
Jul 17th, 2013, 11:26 AM
#6
Re: how to get system date (VB.Net 2005))
You can't change the system time. It's the system time! You can change the way that it is interpreted but the only reason for doing that is nefarious in intent so I won't be telling you how!
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Jul 17th, 2013, 07:37 PM
#7
Frenzied Member
Re: how to get system date (VB.Net 2005))
As far as I know, changing the system time requires a separate API - SetLocalTime. Here's an example: http://www.a1vbcode.com/vbforums/FindPost25051.aspx
-
Jul 17th, 2013, 08:18 PM
#8
Re: how to get system date (VB.Net 2005))
Originally Posted by Zach_VB6
That might get you into another time zone. It won't transport you back in time by a year!
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Jul 18th, 2013, 03:55 AM
#9
Re: how to get system date (VB.Net 2005))
You know its funny. I can't think of any recent instance where I actually tried to change the time from code. But I do remember it was definitely possible to do in QuickBasic and in one line no-less. Weird that I haven't actually tried to do that since that those days.
-
Jul 18th, 2013, 06:14 AM
#10
Re: how to get system date (VB.Net 2005))
I'll just throw it out there, that you could simply run a "date xx/xx/xxxx" (or time) command line process that changes the system date.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|