1
With this simple function, I can get the week number. Now, with the week number, how can I get the date range, started on Sunday?
import (
"fmt"
"time"
)
func main() {
Week(time.Now().UTC())
}
func Week(now time.Time) string {
_, thisWeek := now.ISOWeek()
return "S" + strconv.Itoa(thisWeek)
}`
All help is welcome. Thank you.
Welcome David! This is Stackoverflow in English. Translate, format your question so we can help you!
– rbz