Click here to Skip to main content
15,896,526 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I wanted a date and time to be displayed in my web application,, However, datetime is not to be taken from system in order to avoid wrong date entry in case system date is wrong.. how can i take an current date and time in c# ??
Posted

CodeProject is your friend: [^], [^].
 
Share this answer
 
Comments
Codes DeCodes 25-Mar-14 1:13am    
thanks for reply man
If you don't trust the system then you need to get it from an internet service such as http://www.ntp.org/[^].
 
Share this answer
 
Comments
Codes DeCodes 25-Mar-14 1:13am    
thanks for reply man,,, it worked after a lot of research and code editing,, credit to u for knowledge..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900