Jump to content

Increasing Dates


radioactive

Recommended Posts

There are two things I want done.

 

1. Grab the current date in TIMESTAMP form and increase by a certain number of days as assigned by $days

2. Similar to the previous one, it will grab an already specified TIMESTAMP, and work from there

 

All it echoes is 86400, which I assume is the number of seconds?

 

<?php
$days = 1;
echo strtotime("+$days days", strtotime($date));
?>

Link to comment
https://forums.phpfreaks.com/topic/250596-increasing-dates/
Share on other sites

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.