mirror of
https://github.com/zwpro/coupons.git
synced 2025-12-11 17:32:49 +00:00
commit
768dd09e14
@ -5,8 +5,8 @@ function getFormatDate(ms) {
|
||||
let date = new Date();
|
||||
date.setTime(date.getTime() + ms);
|
||||
const year = date.getFullYear();
|
||||
const month = date.getMonth() + 1;
|
||||
const strDate = date.getDate();
|
||||
let month = date.getMonth() + 1;
|
||||
let strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = '0' + month;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user