moment-utils-z
v1.0.2
Published
Collect and make some function common. (momment)
Downloads
9
Maintainers
Readme
Description
Some format and function common
- Convert date vs string with format
- Can convert custom format
- etc... checking
Install
npm i --D react-dropdown-z
import DateUtils, { FORMATS } from 'moment-utils-z';
let date = DateUtils.convert("2022-12-12", FORMATS.DATE_DASH, FORMATS.DATE_COMPACT)
// more
let date2 = DateUtils.convert("2022-12-12", "YYYY-MM-DD", "MMM")
License
MIT