优化
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user