I'm using Luxon to manipulate Date
s in my code. My method returns a date like this:
DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'
I need to knock off the day part and have '1982-W21'
instead.
Not too familiar with js, how would I "knock off" the day part..
You can split, slice and join the result, or extract a substring like this: