Re: date -> day

From: Date: Tue, 26 Jun 2001 02:34:05 +0000
Subject: Re: date -> day
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55172@lists.php.net to get a copy of this message
mktime can be pretty useful : $year = 2001; $month = 6; $day = 1; print date('l',mktime(0,0,0,$month,$day,$year)); as it creates a unix timestamp, and date() appreciates that. Regards, Philip On Mon, 25 Jun 2001, Tyler Longren wrote: > Hello, > > I have something like this: > $Month = "6"; > $Year = "2001"; > $Date = "1"; > > Is there any relatively simple way to get the day out of that? For example, > the day for 6-1-2001 would be Friday. > > Thanks, > Tyler > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#55172) next »