Can I get a date please?



A quick run down on Javascript dates, how they work across browsers and how to localise them with YUI.


Are you a Javascript programmer who’s tried to get a date and didn’t know how? Do you feel jealous of those fancy schmancy C, PHP and Perl developers able to get a date in a snap, and an international one at that with their strftime functions and OS locale support?

Javascript dates are powerful objects, with methods to get at every part of your date, but no easy way to get the complete date experience you crave. Should you add 1 to the return value of getMonth() or should you use it as an array subscript? And why does getYear() not work consistently?

In this talk, we’ll go over some of the quirks with Javascript dates, and talk about how the YUI library brings the full power of strftime and locales to Javascript.

Speaking experience


  • 1543735477 f302fdc3a3

    Philip Tellis



    Philip Tellis is a geek who likes to make the computer do his work for him. As part of his job with the Performance and Security teams at Yahoo! he analyses the impact of various design decisions on web application performance and security. He also maintains the javascript implementation of strftime used in YUI and plays around with security, accessibility and i18n. He is the maintainer of several opensource projects including ayttm and libyahoo2, and most recently, boomerang — a real user web performance measurement tool.

    In his spare time, Philip enjoys cycling, reading, cooking and learning spoken languages.

    Philip has spoken at several conferences in the past, including FOSS.IN, FREED.IN, Ubuntulive, Linux Symposium, PHP Quebec, Opensource Bridge, WebDU, FOSDEM, IPC and ConFoo.