You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I create a new Date() value set to a specific timezone -- and get the timezone offset programatically? Right now I'm hard coding the timezone but these change throughout the year with daylight savings etc.
var dateInTimezone = new Date("2020-03-03 10:00:00 UTC+8:00");
Is there a way to set new Date( date + getTimezoneVal )?
Example scenario:
Submitting a date (ie. 2020-03-03 @ 10am) via a form -- but set the timestamp to 2020-03-03 10am HKT while you're in NYC.
The text was updated successfully, but these errors were encountered:
yukanagai
changed the title
How to set a new Date() value with timezone
How to set a new Date() value with dynamic timezone
Jan 31, 2020
How can I create a new Date() value set to a specific timezone -- and get the timezone offset programatically? Right now I'm hard coding the timezone but these change throughout the year with daylight savings etc.
var dateInTimezone = new Date("2020-03-03 10:00:00 UTC+8:00");
Is there a way to set new Date( date + getTimezoneVal )?
Example scenario:
Submitting a date (ie. 2020-03-03 @ 10am) via a form -- but set the timestamp to 2020-03-03 10am HKT while you're in NYC.
The text was updated successfully, but these errors were encountered: