I am trying to convert string to time strtotime
operation in php
Here's my code
echo date("Y-m-d", strtotime('2 January, 2017'));
When i do conversion for 2 January, 2016
it results as 2016-01-02
But When i do conversion for 2 January, 2017
it results as 2016-01-02
which is expected as 2017-01-02
What is the issue in the code and how can i fix this ? Help pls