8 lines
142 B
JavaScript
8 lines
142 B
JavaScript
const DateFix = {
|
|
dashedFix(val) {
|
|
const [y, m, d] = val.split('-');
|
|
return new Date(y, m - 1, d);
|
|
},
|
|
};
|
|
|
|
export default DateFix;
|