I\'m trying to get the first and last day of the current month. You can add days and hours but not the month, which I was thinking of subtracting one day from the next month to
goutils provides many useful func tools. goutils
beginningOfTMonth:=time.TimeBeginningOfMonth(t) endOfTMonth:=time.TimeEndOfMonth(t) beginningOfTWeek:=time.TimeBeginningOfWeek(t) endOfTWeek:=time.TimeEndOfWeek(t)