This is strange, I do not know if this is a mistake, but please, someone will try.
Do it in php
echo date("YW",strtotime("2014W05 -1 weeks"));
The result will be 2014-04, right? YEAR NumberWeek. No problem at all. But now try the following:
echo date("YW",strtotime("2014W02 -1 weeks"));
Why is it 2013-01, why 2013? What's wrong? It should be 2014-01, right?
What am I doing wrong? This is mistake?
My PHP Version: 5.4.22
php
saulob
source share