Click here to Skip to main content
12,244,103 members (51,993 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
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 23-Jan-13 23:38pm
Comments
SureshDasari1986 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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100