Week numbers in Go
How to get the week number from a date
To get the ISO week number (1-53) and corresponding four-digit year from a Time
instance, t, use t.ISOWeek()
.
Read more about ISOWeek() in the Go documentation.
To get the ISO week number (1-53) and corresponding four-digit year from a Time
instance, t, use t.ISOWeek()
.
Read more about ISOWeek() in the Go documentation.
Can we use your data to tailor ads for you?
Our partners will collect data and use cookies for ad personalization and measurement.
Learn more