Click here to Skip to main content
16,014,303 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I need to set time globally in web.config globalization

i have table called User with "created date" column.
In coding i am passing "datetime.now" to that column

Now i need to send it from globalization.


Thank you
Posted

1 solution

Why the heck would you even want to do that? Do you expect that all your users at any one time will be from the same time zone? You and I aren't, and we are using the same website at the same time...

There are three "times" you should be interested in / aware of: Universal Coordinated Time, Server time (which with any luck will be UTC, but probably not), and Client time, which could be anywhere in the world. The last thing you should start doing is trying to introduce a fourth time as this will just complicate things immensely - at least there is a good chance that your webserver and database server share a common time at the moment!
 
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