Question check the server DateTime

swathys

Member
Joined
Sep 21, 2010
Messages
7
Programming Experience
Beginner
Hi,
can anyone guide me on how to check the server DateTime when the application launch. i want to make sure the user PC has the same DateTime as server when the user use the application. Reason being is some user may tend to change their DateTime backward and it causes a major confusion when it update in the database.
Please guide me !
 
If you want the server time inserted into the database then you should probably let the server insert the date. Pretty much any database will have a function to get the current date and time.
 
Back
Top