RE: [PHP] Working out the name of the day given a date

From: Date: Tue, 16 Jan 2001 16:31:38 +0000
Subject: RE: [PHP] Working out the name of the day given a date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34843@lists.php.net to get a copy of this message
On Tue, 16 Jan 2001, Jon Haworth wrote: > Hmmm. I did: > > $timestamp = mktime(0,0,0,$month,$date,$year); > $day = date("1", $timestamp); > > and it returns 1, no matter what the contents of $month, $date and $year > are. Did I miss something? > Yes, you're missing the fact that it's a lowercase 'L', and not in fact the numeral '1'. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#34843) next »