Skip to content

A Polymer element to parse, validate, manipulate, and display dates using Moment.js.

License

Notifications You must be signed in to change notification settings

masonlouchart/moment-js

 
 

Repository files navigation

<moment-js>

Build Status Published on webcomponents.org

A Polymer element to parse, validate, manipulate, and display dates using Moment.js.

Install

bower install moment-js

Usage

<moment-js></moment-js>
<moment-js format="YYYY-MM-DD HH:mm:ss"></moment-js>
<moment-js date="2016-01-10 14:30" date-format="YYYY-MM-DD HH:mm" format="LLLL"></moment-js>
<moment-js date="2012-09-21" date-format="YYYY-MM-DD" format="LLLL" formatted-date="{{myDate}}" hide></moment-js>
<moment-js date="2016-01-10 14:30" calendar-time></moment-js>

Docs & Demo

See the component page for docs and demo.

Running demos and tests in a browser

  1. Fork the moment-js repository and clone it locally.

  2. Make sure you have Bower installed.

  3. When in the moment-js directory, polymer install to install dependencies.

  4. Run polymer analyze moment-* > analysis.json && polymer serve --port 3000 --open, browser will automatically open the component API documentation.

  5. You can also open demo or in-browser tests by adding demo or test to the URL, for example:

License

MIT © Saeid Zebardast

About

A Polymer element to parse, validate, manipulate, and display dates using Moment.js.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 100.0%