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.
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
SPECIFICATIONS & DOWNLOAD
- Official Website / Demo / Download
- Plugin Category: Date & Time
- Compatibility: All Modern Browsers
- License: MIT License
Comments will be moderated and
rel="nofollow"
will be added to all links. You can wrap your coding with[code][/code]
to make use of built-in syntax highlighter.