Am trying to display "next month", which at this time would be December - I have tried all sorts, but can only get January -
$next_month = date(F, date()+'1');
This produces January as does everything else I try - any suggestions?
Try using [man]strtotime/man.
got
1103673600
Dunno if thats December!
try to use mktime() function like
$nextmonth= mktime (0,0,0,12,1,date("Y"));
resutl 12/01/2004
$one_month_from_now = date("m", strtotime("+1 month"));
Originally posted by Davy $one_month_from_now = date("m", strtotime("+1 month")); [/B]
Originally posted by Davy
[/B]
Perfect - changed the m to an F for the format I wanted, ta very much.
Don't thank me -- thank the guys that post comments on php.net's documentation! 🙂
Ok then just a point scoring system -- no prizes?
=P
people ARE answering yes but with reduced enthusiasm, I feel.