Jump to content

[SOLVED] Manipulating dates


sloth456

Recommended Posts

That didn't quite work, heres my code and the output

 

$date=date("Y-m-d");
echo "todays date ".$date."<br>";
$day_50 = strtotime($date . " -50 Days");
echo $day_50;

 

Output:

 

todays date 2009-05-08

1237420800

 

Thanks for your help so far, really appreciate the effort.

 

 

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.