Re: Help with Date

From: Date: Mon, 09 Oct 2000 08:56:44 +0000
Subject: Re: Help with Date
Groups: php.general 
Request: Send a blank email to php-general+get-19165@lists.php.net to get a copy of this message
I think this will probably do it: $this_date = date('Y-m-d',mktime(0,0,0,date(m)+2,0,date(Y))); take care, Seth > Hi, > > Could someone help me out here please. > > I need to be able to do this and can't work out how.... > > $this_date = "last_day_of_next_month" ( In d-M-Y format) > > So, today it would return 30-11-200. on 23- Nov -2000 it would return > 31-12-2000, on 2-dec-2000 it would return 31-1-2001 and so on. > > Many thanks in advance.

« previous php.general (#19165) next »