Hi,
Just want to know how can i add 1 day into a date.
Example: 12-5-2002 + 1 = 13-05-2002
I try this before but the result i got is Date = 13 only. month and year wont be appear.
Do anyone know how to do this? using what function or ??
Thanks, Ming
try the following code
<?php
$cur_year = 2002; $cur_month = 5; $cur_day = 12; $cur_hour = 0; $cur_min = 0; $cur_sec = 0;
$next_day = mktime($cur_hour, $cur_min, $cur_sec, $cur_month, ($cur_day + 1), $c ur_year);
print date('d-m-Y', $next_day);
?>