package internal import "time" func BeginningOfMonth() time.Time { now := time.Now() year, month, _ := now.Date() beginningOfMonth := time.Date(year, month, 1, 0, 0, 0, 0, now.Location()) return beginningOfMonth }