I am looking for a function to convert date in one timezone to another.   It need two parameters,    date (in format "2012/04/10 10:10:30 +0000")  timezone string ("Asia/Jakarta")   The timezone string is described in http://en.wiki...
I want to convert date string to Date by javascript, use this code:  var date = new Date('2013-02-27T17:00:00'); alert(date);   '2013-02-27T17:00:00' is UTC time in JSON object from server.  But the result of above code is different...
In 2007, the days that we switch to daylight savings time changed.  Any date that falls within the extend range of DST prior to that change is reporting an incorrect timezone offset in Chrome and Firefox.  It's like Firefox and Chrome don't...
Using moment.js (with moment-timezone), I want to get the timezone abbreviation (e.g. PST) for the current locale.  var now = Date.now(); // 1423254073931 var zone = moment(now).zone(); // 480 var timezone =    How do I get the timezone abbreviatio...
I often need to display information based on or influenced by a user's actual local time which differs across time zones. Is there a reliable way of getting a user's current time and/or timezone?  Key Issues:   Server-side code is based on...
The format of my date string looks like this: yyyy-MM-ddTHH:mm:ss-0Z00  Example 1: 2010-03-05T07:03:51-0800  Example 2: 2010-07-01T20:23:00-0700  I need to create a date object using these date strings. new Date() does not work on this string. Please...
I have a scenario where I have a timezone offset (in minutes) and need to determine the timezone for it.  I know that all the data is not available (for example, there may be several timezones with an offset of -240 minutes) but a "best guess"...
I have an application displaying a week of bookable time slots (of a resource).  A time slot is always 30 min long and can either start :00 or :30.  The availabilites are internally represented by the week's minutes (in an array), 0 meaning the w...
I need a way to convert times in the future to different timezones without relying on the user's computer time.  At registration time, the user supplies his timezone. When he logs in, I calculate the offset in minutes between the UTC time and his...
In using webpack to build my project, I typically require modules in CommonJS from npm modules. I need moment-timezone in my project, however in building the package you must also build all the data from moment-timezone, which can be quite a lot.   A...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.