Changelog
4.2.3
Changelog
4.1.0
Added Z format/parse and fixed Peru timezone issue
Z
format token. See readme for more info. Big thanks to @fer22f for writing the code.Changelog
4.0.0
Major Features and Breaking changes in this version
2019-55-01
or 2019-01-42
would parse correctly, since Javascript can handle it. Now invalid dates will return null
insteadparse
or format
independentlyimport {format, parse} from 'fecha';
format(...);
parse(...)
parseDate
may return null
when previously returned a Date
. See improvements above, but invalid dates will return null
nowimport fecha from 'fecha';
fecha.i18n = { ... }
fecha.masks.myMask = 'DD , MM, YYYY'
New
import {parse, format, setGlobalDateI18n, setGlobalDateMasks} from 'fecha';
setGlobalDateI18n({
// ...
})
setGlobalDateMasks({
myMask: 'DD , MM, YYYY'
});