moment.parseFormat – a moment.js plugin
A moment.js plugin to extract the format of a date/time string
Installation
Simplest way to install is using bower:
bower install --save moment.parseFormat
Usage
var format = moment.parseFormat('Thursday, February 6th, 2014 9:20pm');
// dddd, MMMM Do, YYYY h:mma
moment.format(format); // format
Fine Print
The moment.parseFormat Plugin have been authored by Gregor Martynus, proud member of Team Hoodie. Support our work: gittip us.
License: MIT