date plus 4 Day results in wrong date
Posted: Wed Mar 17, 2004 5:40 am
I have a date "01.07.2004" and want to get "05.07.2004". This is done in the following way:
Here it works:
gives: 05.07.2004
Here the results is crap:
gives: 04.01.2006
What do I do wrong ?
Matthias
Here it works:
Code: Select all
$datum_plus_vier_tage = mktime(0,0,0,"01"+4,"07","2004");
$enddatum = strftime('%m.%d.%Y', $datum_plus_vier_tage);
echo $enddatum;Here the results is crap:
Code: Select all
$datum_plus_vier_tage = mktime(0,0,0,"24"+4,"01","2004");
$enddatum = strftime('%m.%d.%Y', $datum_plus_vier_tage);
echo $enddatum;What do I do wrong ?
Matthias