// 日期工具
package utils
import (
"strings"
"time"
)
// 月初月末
func BeginningOfMonth(date time.Time) time.Time {
return date.AddDate(0, 0, -date.Day()+1)
}
func EndOfMonth(date time.Time) time.Time {
return date.AddDate(0, 1, -date.Day())
}