Here is my code:
$TmoveDATE = "2015-06-30"; // start date
$TremoveDate = time($TmoveDATE); // converts value to time
$TnumberDays = $TnumberDays * 24; // converts days to hours
$TnumberDays = $TnumberDays * 60; // converts hour to minutes
$TnumberDays = $TnumberDays * 60; // converts minutes to seconds
$TremoveDate = $TremoveDate + $TnumberDays; // end date
$TremoveDate = date('Y-m-d', $TremoveDate);
print "Start: $TmoveDATE<br>";
print "End: $TremoveDate<br>";
This results with:
Start: 2015-06-30
End: 2014-07-20
It should end with 2015-07-02 ... your help is greatly appreciated!
Jim Null
$TmoveDATE = "2015-06-30"; // start date
$TremoveDate = time($TmoveDATE); // converts value to time
$TnumberDays = $TnumberDays * 24; // converts days to hours
$TnumberDays = $TnumberDays * 60; // converts hour to minutes
$TnumberDays = $TnumberDays * 60; // converts minutes to seconds
$TremoveDate = $TremoveDate + $TnumberDays; // end date
$TremoveDate = date('Y-m-d', $TremoveDate);
print "Start: $TmoveDATE<br>";
print "End: $TremoveDate<br>";
This results with:
Start: 2015-06-30
End: 2014-07-20
It should end with 2015-07-02 ... your help is greatly appreciated!
Jim Null