0

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?

Fvcundo
  • 95
  • 2
  • 3
  • 11

1 Answers1

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.

There are questions here and here asking how to do that.

Community
  • 1
  • 1
reduckted
  • 2,358
  • 3
  • 28
  • 37