The issues of timezones has crept into my programming requirements as server sits in a different timezone compared to users for example. As a result, when posting record updates or anything relating to date and time, these are out of sync.
I am using the following script for example to gather to current date:
Label_Date.Text = DateTime.Now.ToString("ddd, MMM dd, yyyy");
I suspect this is gathering the date locally - if so, how do I collect the current date and time from the server? (so then can sync up to the correct date/time zone locally depending on users location etc).
How are daylight saving worked out (in terms of keeping this uptodate and current, and in particular during that day of changing the clock back ro forward -- how you account for a loss or gain of an hour for example in the server logs/online form processing etc) -- as different countries have varying approaches to this.
The main thing I would like to resolve firstly, is gathering the latest date/time from the server (not via local o/s).
Thank you in advance for your time and efforts with this enquiry.