Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date sum 1

Status
Not open for further replies.

technisup

Programmer
Sep 28, 2007
41
US
Hi, I'd like to know how do i do to sum to a record (date type) 11 months in order to establish the date after the sum?
Thanks for the help.
 
Code:
$date = "2007-11-28";
echo "11 months time, the date will be: ";
$nDate = date("Y-m-d", strtotime("+11 months", strtotime($date)));
echo $nDate;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top