If you mean minus one month, you can do the following:
$date = "2014-3-19 00:00:00";
$newDate = date("Y, n, j, H, i", strtotime('-1 month', strtotime($date)));
And it 2014, 1, 19, 00will be 2013, 12, 19, 00, but not 2014, 0, 19, 00.
Update:You want to pass the date to the jQuery plugin ( jquery.magicbusmultimedia.net ).
The plugin asks you to pass a javascript date object.
So you can do:
$('#myCounter').mbComingsoon(new Date(<?php echo strtotime($date); ?> * 1000));
source
share