D3 time format skips isoWeek

2019-09-05 01:15发布

问题:

When using d3.time.format(%Y%W) it doesn't give the expected output.

d3.time.format("%Y%W").parse("201553") outputs Mon Jan 04 2016

Although the first Monday of week number 53 in 2015 is Mon Dec 28 2015

So it seems like it parses to the next week.

Any ideas how to fix this to get the expected output.