Monday, March 31st, 2008

Helpful JavaScript Date Operations

Category: JavaScript, Library

<>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:

2 Comments »

Comments feed TrackBack URI

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…

Comment by icoloma — April 5, 2008

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.

Comment by Geoffrey McGill — June 21, 2008

Leave a comment

You must be logged in to post a comment.