Moments.js is a feature-rich JavaScript library for working with dates (parsing, manipulating, and formatting them).

It works both in the browser and server with NodeJS as all code is compatible with both of the environments.

The library can easily convert any given date to many different formats, add/subtract dates, hours, etc. and has methods for displaying user-friendly date/times like "in 5 days"

Moment.js is multilanguage and any new languages can be easily added by editing a language file.

Moment.js

WebResourcesDepot Feed