dateTool.js 136 Bytes Raw Blame History Permalink 1 2 3 4 5 6 'use strict' import moment from 'moment'; export function getLastDay() { return moment().subtract(1, 'days').format('YYYY-M-D'); }