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.

Read more

Learn more about week numbers and the ISO week numbering scheme in this little primer.