Jump to content

[SOLVED] Subtracting one minute from the current date?


proud

Recommended Posts

 

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 ?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.