I want to implement a Javascript countdown timer that has the month value substracted by 1.
To get the date dynamically via PHP I use this code:
$date = "2014:3:19 00:00:00";
$newDate = date("Y, n, j, H, i", strtotime($date));
Which returns:
2014, 3, 9, 00
My question is how can I substract the value n
by 1, so the final output will be always like this:
2014, (3-1), 9, 00