I want to set my own date and time in my vbNet app so I wont rely to my PC's date&time. Is it possible to have your own date and time in vbNET running even if its closed and when the next time you open it, it still display the real time and date? How can I do that? any sample codes?
Asked
Active
Viewed 452 times
0
-
No, that's not possible. If your app isn't running, you have no choice but to depend on the system clock. – Matt Johnson-Pint Jan 07 '15 at 05:57
-
@MattJohnson, oh sad. Anyway, thankyou sir. :) – Fvcundo Jan 07 '15 at 06:02
-
Not unless you explicitly retrieved the time from an external source on the internet? – Idle_Mind Jan 07 '15 at 06:17
1 Answers
0
You won't be able to keep track of your own time when the application is closed without relying on the system time (you'd need to know how long your application was closed for, and you could only use the system time for that).
However, if you really wanted to, you could fetch the current time from an NTP Server each time you need to know what the time is.