proud Posted April 25, 2007 Share Posted April 25, 2007 I want to know how i can subtract 1 minute from the current date. e.g. $date = date("d/m/Y g:i a"); echo $date; // the result is 25/04/2007 8:14 pm now how can i subtract one minute from $date and put it in a new variable so that it's value will be 25/04/2007 8:13 pm ? Link to comment https://forums.phpfreaks.com/topic/48660-solved-subtracting-one-minute-from-the-current-date/ Share on other sites More sharing options...
micah1701 Posted April 25, 2007 Share Posted April 25, 2007 see strtotime Link to comment https://forums.phpfreaks.com/topic/48660-solved-subtracting-one-minute-from-the-current-date/#findComment-238352 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.