Click here to Skip to main content
11,484,162 members (71,497 online)
Rate this: bad
good
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 at 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
0 Sergey Alexandrovich Kryukov 210
1 Frankie-C 155
2 Raje_ 155
3 OriginalGriff 147
4 Maciej Los 110
0 Sergey Alexandrovich Kryukov 8,489
1 OriginalGriff 7,943
2 Sascha Lefèvre 3,114
3 Maciej Los 2,581
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2015
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