Ever felt some problems when dealing with dates in your Javascript adventures ? Well, this tiny library will solve it al.

take a date and add day, months, years, minutes…it will conpute it for you.

  • Getters,
  • setters,
  • String date parsing.
  • difference between dates or parts of dates
  • Date formating
  • UTC Mode
  • Some cool utilities (today, etc..)

It supports also methods chaining.

Check this code :

selectedDate = new XDate('2012-11-23');
selectedDate.addDays(7).toString("dd/M/yyyy");

 

 
Don’t wait more.Give it a try

http://arshaw.com/xdate/