Tuesday, 17 September 2013

New date to string shows as day before because of time zone

New date to string shows as day before because of time zone

How can I display a date to behave like that day regardless of the users
time-zone?
>>> new Date('2013-09-17')
Date {Mon Sep 16 2013 20:00:00 GMT-0400 (Eastern Standard Time)}
I'm trying to use the jquery datepicker formater, however when I pass the
date object it's off by a day. How can I make sure that the users timezone
is disregarded?

No comments:

Post a Comment