I’ve a service which push date from my SQL server database to web database and the date format that is pushed is “yyyyMMdd”.
My database resides in india, so date format and current date is based on Indian Culture and Locale based.
And my web server resided in US, so there the date format is based on US.
There is almost 13 hours difference in Indian and US time. So when my client entered a consignment on say 13 June 2011 9:00 am in the morning, it shows on website that is received on 12th June.
So receiving a consignment before client even booked them makes such a big hassle. Please guide me for something to reolve this.
Thanks
This will take the user input and convert it to UTC:
You can store all
DateTimevalues in your database as UTC and then present them to the user in whichever timezone / culture is appropriate.