Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have hosted a retail web application in Godaddy, how to pick particular country time in asp.net.

Thanks in advance.
J Walia
Posted

A time zone ? I believe it will just give you the time zone of your server and you need to convert that to GMT and to the desired timezone from there.
 
Share this answer
 
You know where your webserver is and what time it must be using (based on certain timezone.)
Now, based on the IP, you can trace the country or from user data (if you have a login). Once you trace out the country of the logged in user in your site, you can use the known timezone differences between your webserver time and logged in users country time using GMT. Adjust accordingly.
 
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