How many online forum like StackOverflow and forum.asp.net show questions and posted answers with date and time?
How do they store date and time into sql server table?
Do they store date and time in UTC format?
Sometimes a forum shows a question asked 8 hours ago and also an answer posted 6.10 minutes ago.
How they diff stored utc date and time from current date and time? And how they diff stored utc date and time from user time zone time?
Suppose my website and database is hosted in an USA server. Suppose someone asked a question in the morning of Aug 21 at 9:34 from India and an answer was posted from USA on AUG 20 at night but forum shows the infos like:
question posted Aug 21 at 9:34
and answer posted Aug 21 at 9:38
How it is possible? Is it showing right date and time?
Please discuss how we should store date and time in sql server db in UTC format and how to display results which will not create confusion in readers mind.
Guide me using concepts and examples. People can visit any forum question without any login. So how server will know from which country the user is coming and what is user timezone? In asp.net can we know what is user time zone from server side?
When user requests a page then from the code being file can we know what is user timezone?
I saw forum generate posted question and answer's date and time info at server end before transfer html to client. So how any web site know from which time zone a user requesting a page. If it is possible then we can convert date and time to user timezone.
Looking for guide lines. Thanks