admin
Administrator
     
Offline
Posts: 239
|
 |
« on: December 30, 2014, 11:51: PM » |
|
<?php echo date('m-d-Y', mktime(date('h'),date('i'),date('s'),date('m'),date('d')+30,date('Y')))."\n";
?>
change bold for # of days added - Red add a new line at the end of the date - below is without the new line Maroon is the way the date will display. To insert into a mysql date field - display as Ymd - no spaces or dashes in between
<?php echo date('m-d-Y', mktime(date('h'),date('i'),date('s'),date('m'),date('d')+365,date('Y')));?>
|