Click here to Skip to main content
12,952,778 members (34,467 online)
Rate this:
 
Please Sign up or sign in to vote.
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 23-Jan-13 22: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
OriginalGriff 6,389
CHill60 3,490
Maciej Los 3,103
Jochen Arndt 1,975
ppolymorphe 1,920


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2017
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