As you may know the built-in Date and Time methods in JavaScript are pretty basic. Sure, one can code his or her own JavaScript Date Manipulation Library but why reinvent the wheel when we can easily obtain well-developed and tested JavaScript date manipulation plugins. Just like the following below! Enjoy!

1. XDate

It is a thin wrapper around JavaScript’s native Date object that provides enhanced functionality for parsing, formatting, and manipulating dates. It implements the same methods as the native Date, so it should seem very familiar.


XDate

Source + Demo

2. DP Date Extension

A library extends the JavaScript Date object with new features and functionality.


DP Date Extension

Source Demo

3. JavaScript Pretty Date

A simple way to format old JavaScript dates in a “pretty” way. For example “2008-01-28T20:24:17Z” becomes “2 hours ago”.


JavaScript Pretty Date

Source Demo

4. Moment.js

A lightweight (3.7k) javascript date library for parsing, manipulating, and formatting dates.


Moment.js

Source + Demo

5. Countdown JS

A simple JavaScript API for producing an accurate, intuitive description of the timespan between two Date instances.


Countdown JS

Source Demo

Sam Deering is a Front-end Web Developer who specialises in JavaScript & jQuery. Sam is driven and passionate about sharing his knowledge to educate others.

Free Guide:

How to Choose the Right Charting Library for Your Application

How do you make sure that the charting library you choose has everything you need? Sign up to receive this detailed guide from FusionCharts, which explores all the factors you need to consider before making the decision.


  • http://twitter.com/jiliko Olivier Nolbert

    Xdate is perfect. It saved my life to implement search filters based on ‘Today’, ‘yesterday’, ‘This week’ & ‘This month’…

Learn JavaScript for free!
Free course: Introduction to JavaScript

Yours when you take up a free 14-day SitePoint Premium trial.