Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to Fetch Current Time from Internet to a  Text box using C#


What I have tried:

DateTime d = DateTime.UtcNow; 

            
DateTimeOffset dto2 = DateTimeOffset.UtcNow;


But it return only Correct Date only.
Posted
Updated 11-May-17 21:22pm
Comments
Michael_Davies 12-May-17 3:20am    
What do you mean by "fetch current time from internet", datetime uses the system time, the system has a method to update it's time using time servers on the internet and the time zone settings, what is it you want to do exactly.

1 solution

 
Share this answer
 
Comments
Member 10989733 12-May-17 3:46am    
Thankz
CPallini 12-May-17 6:57am    
You are welcome.

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