Jump to content

[SOLVED] add i day to certain date


porta325

Recommended Posts

using the strtotime like this:

 

strtotime("+1 day", strtotime("2007-01-01"));

 

make sure the second parameter is the Unix-timestamp which are in seconds.

 

You can try out the output like this:

 

$a = strtotime("+1 day", strtotime("2007-01-01"));

echo date('d M Y', $a);

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.