How to handle time difference in ASP.Net (MVC)? -


I have published a web application on a server in the United States. The app is actually for people in Sweden (people in Sweden) and I am looking for the best way to complete the gap of time.

There is a 7 hour difference.

Should I store DateTime.Now as DB in , or should I use the date to change the time before making every record?

What is the best practice here? What to store in the database? Should there be only differences while presenting it?

Best Practices, Please!

I usually get datetime. UTC now stores what UTC Time is. So when it is 13.00 in UTC, it is 14.00 in Sweden and 7.00 in the United States, you store the UTC time (13.00) and you will get a new culture Innfo ("SV-SE") for local time in Sweden. Always format date time with USA etc.

Michael


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -