Home
> Javascript > Using Datejs – Open Source Javascript Date Library
Using Datejs – Open Source Javascript Date Library
Datejs is an open source JavaScript Date library for parsing, formatting and processing
Overview & Download
http://code.google.com/p/datejs/
Getting Started
http://www.datejs.com/2007/11/27/getting-started-with-datejs/
Documentation
http://code.google.com/p/datejs/wiki/APIDocumentation
Examples:
Date.today()
Date.today().next().friday()
Date.today().is().november()
Date.today().addDays(1)
Date.today().addMonths(-3)
Date.october().fourth().sunday(
Date.today().between(startDate, endDate)
Date.today().toString('d-MMM-yyyy')
Date.today().toShortDateString()
Date.getDayNumberFromName('sat')
Date.isLeapYear(2008)
Date.getDaysInMonth(2007, 9)
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Recent Comments