dateTool.js 191 Bytes
'use strict'

export function getLastDay() {
    let date = new Date();
    let lastDay = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + (date.getDate() - 1);
    return lastDay;
}