summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/utils/datefix.js
blob: d0c81ec854fd21cc4c933b6d3e08158f722feea0 (plain)
1
2
3
4
5
6
7
8
9
const DateFix = {
  dashedFix(val) {
    const [y, m, d] = val.split('-');
    console.log(y,m,d)
    return new Date(y, m - 1, d);
  }
}

export default DateFix;