Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I display country name and respective current date time when a user opens my page. I mean if a user is in USA he should get USA time.if the user is in Africa…it should display African time….please help me out. Thanks in advance
Posted
Comments
Suresh Dasari's 24-Jan-13 4:46am    
http://stackoverflow.com/questions/14251553/c-sharp-and-current-local-time-for-different-countries

http://msdn.microsoft.com/en-us/library/system.timezoneinfo%28v=vs.100%29.aspx

1 solution

You can make use of one of the many third party providers that determine location based on user IP. However, this may not be accurate. Search web for provider. I guess geocity (or something similar) is one.
 
Share this answer
 

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