Moment.js – The Missing Javascript Date Library

Introduction

moment.js is a lightweight and robust javascript date library for parsing, manipulating and formatting dates. Current javascript date method is just too basic to fulfil slightly complex date manipulation such as differences between dates, convert Unixtime stamp, date display customization. Also, you can easily achieve twitter’s style relative time display (eg, posted 3 minutes ago).
If you know about PHP date function, moment.js basically take it as a reference therefore, you will get some familiar feature in this javascript. It’s well-documented and its documentation will able to help you to use every single configurations and methods available in moment.js.

Details

demo

download

  • CompatibilityAll Modern Browsers
  • LicenseMIT License

Features

  • Lightweight, only 3.2kb
  • No dependencies, standalone javascript
  • Date Parsing: supports Unix timstamp, String, Date with specific format.
  • Date Manipulation: Add, subtract dates
  • Date Display: Robust date display option including relative time display.
  • Other built-in methods such as daylight saving, leap year, timezone offset and i18n language customization.
  • it also works as a NodeJS module
  • Documentation.

Screenshots

Moment.js - The Missing Javascript Date Library

Moment.js - The Missing Javascript Date Library

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>