dateTool.js 191 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 'use strict' export function getLastDay() { let date = new Date(); let lastDay = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + (date.getDate() - 1); return lastDay; }