3 ms·
If you don't mind dependencies, there's Moment.js http://momentjs.com/ http://momentjs.com/
by arnarbi 14y ago
If you don't mind dependencies, there's Moment.js
http://momentjs.com/ http://momentjs.com/
- tadfisher 14y ago...Which unfortunately falls short when you need to do anything more complicated than transforming dates between local time and UTC. If you need to, say, display a Date in Pacific Standard Time to a user agent in Helsinki, you absolutely need something that understands the timezone database. I've found that timezone-js [1] does the job. [1] https://github.com/mde/timezone-js https://github.com/mde/timezone-js