This commit is contained in:
zds
2022-12-01 21:48:55 +08:00
parent aced8be5a7
commit c22a8545ee
8 changed files with 214 additions and 197 deletions

View File

@@ -25,10 +25,12 @@ Date.prototype.daysLater = function(days, midnight) {
return midnight ? date.toMidnight() : date
}
Date.prototype.monthBegin = function(offset) {
offset = offset ? offset - 0 : 0
const days = this.getDate() - 1 - offset
return this.daysAgo(days, true)
Date.prototype.monthBegin = function() {
const year = new Date().getFullYear()
const mouth = new Date().getMonth()
const days = new Date(year,mouth,1).strftime('%F', 'zh')
debugger
return days
}
Date.prototype.quarterBegin = function() {