A moment.js plugin to extract the format of a date/time string
Browse cluster: JavaScript Standard Style Linting →moment-parseformat is a moment.js plugin that extracts the format string from a date/time string, allowing developers to reverse-engineer the formatting pattern used in a given date. The plugin is built for use with moment.js in both browser and Node.js/CommonJS environments and can be installed via npm or loaded as a script tag. It includes configurable options for disambiguating date component order when the plugin encounters ambiguous numeric patterns, with sensible defaults based on separator type. The project was authored by Gregor Martynus as part of the Hoodie Community.