How can I turn a string containing the year and an iso week date into a time object?
This is how the string I have looks like: 2020-15
, where 2020
is the year and 15
is the iso week number. Ideally, I would like to get the first available timestamp of a week (Monday at midnight).
I read through the documentation of the Parse()
method here https://golang.org/pkg/time/#Parse, but I cannot figure out how to come up with a layout string of the reference time where the week is taken into account.