I have this code
$week = date('W', strtotime("2013-12-30"));
and $week is returning 01
How can that return 01 if we are in December? How can I fix this? As this is impacting on another part of the code where I'm trying to get the monday of each week:
$monday = date("Y-m-d", strtotime("{$year}-W{$week}-1"));
But when I do that with that date, it's returning the monday of week 01.