How to Use Moment.js
Saturday, Aug 16, 2014
Tags: JavaScript moment.js

With recent work formatting of dates has been an important feature. From my reading around the bloggersphere I came across a JavaScript library that I have found to be useful - moment.js. To start using moment.js download the library from Create a html page and add a reference to the library. In the body of the page add content to display a time. <div> <h2>Basic moment.js demonstration</h2> <input type="button" value="Get Date" onclick="getDate()" /><br /> <span id="demoSpan"></span> </div> Next in the header add a JavaScript function to get the date from the moment.

(C)2014-Today  Coding With An Accent