Momentjs - A lightweight JavaScript library for parsing, validating, manipulating and formatting dates.

Momentjs is very helpful library to work with dates in  JavaScript. Many times we face problem with dates and times parsing, validation, manipulation and formatting.

Momentsjs make our life easy. Its very easy to use with JavaScript. Momentjs also support many languages.



Momentjs divided into four category
  • Format Dates
  • Relative Time
  • Calendar Time
  • Multiple Locale Support
Moment Timezone - Timezone support libray for moment.js

Official Website  - http://momentjs.com

License - Moment.js is freely distributable under the terms of the MIT license.

For non Nodejs application we can use CDN. For .Net application we can easily install by Package Manager.

Installation Process  -

 NodeJs

?
1
2
3
4
5
6
7
8
9
bower install moment --save
npm install moment --save 
Install-Package Moment.js  
spm install moment --save  
meteor add momentjs:moment
bower install moment --save

npm install moment --save  

Install-Package Moment.js   

spm install moment --save   

meteor add momentjs:moment

.Net Application

To install Moment.js from visual studio , run the following command in the Package Manager Console

PM> Install-Package Moment.js


You can use momentjs cdn path on CDNJS.com 

http://cdnjs.com/libraries/moment.js/

Version 2.9.0
 
?
01
02
03
04
05
06
07
08
09
10
11
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/locales.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/locales.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/locales.js

https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/locales.min.js

https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.js

https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.min.js

https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.js

https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js

Useful link -  http://www.sitepoint.com/managing-dates-times-using-moment-js/

Previous
Next Post »
Thanks for your comment