Monday, March 31st, 2008
Helpful JavaScript Date Operations
<>p>Tavs Dokkedahl has created a set of Date methods which people might find helpful in his JSLab standard libary.Included are Date.getISOWeek, Date.setISOWeek, getFirstDateInWeek, Date.isLeapYear, and Date.format which works like the PHP equivalent.
In addition the library also includes other useful functions for Array, Math, Number, Function and other objects.
Related Content:











No Date.parse() method :(
Seriously, if I had to format a Date, I could already use server-side code most of the time. I look at javascript to perform client-side validations on user input, and an alternative to ext/dojo for this would be great.
But without a parse method, I do not see any reason to try it…
We’ve also been working on JavaScript Date library for a while now. Might be useful to you. See http://www.datejs.com/. Also includes killer Date.parse() functionality.