Archive

Posts Tagged ‘getting started with datejs’

Using Datejs – Open Source Javascript Date Library

October 18, 2010 Leave a comment

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)

Advertisements