1 2 3 4 5 6 7 8
const DateFix = { dashedFix(val) { const [y, m, d] = val.split('-'); return new Date(y, m - 1, d); }, }; export default DateFix;