This is component for simple parsing date for string that you wants, You should use it with commonjs at least.
npm install date-mutareThis is component for simple parsing date for string that you wants, You should use it with commonjs at least.
js
import DateParser from 'date-mutare';
`Usage
`js
/**
* @description: parse string of date to date obj
* @param: {string}
* @return: {Date}
*/
DateParser.parse
/**
* @description: format date obj to a date string
* @param: {Date object|string|number} date object or string
* @param: {string} string of formating date
* @return: {string} date string
*/
DateParser.format
/**
* @description: view regular expression which used in component
* @return: {string} regular string
*/
DateParser.info
``