Re: Help with date....

From: Date: Tue, 07 Jan 2003 15:04:33 +0000
Subject: Re: Help with date....
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24616@lists.php.net to get a copy of this message
You can do it very nicely with MySQL: $query = "SELECT WEEKDAY( '{$mydate}' )" ; Provided your date is correctly formatted ( yyyy-mm-dd ) Ignatius ____________________________________________ ----- Original Message ----- From: "Rodrigo Corrêa" <rodrigo@praticsistemas.com.br> To: "PHP1" <php-db@lists.php.net> Sent: Tuesday, January 07, 2003 3:57 PM Subject: [PHP-DB] Help with date.... How can i find out the day of the week in one date?? like => 07/01/2002 the day of the week is " 3 " thurday like => 18/01/2002 the day of the week is " 6 " saturday is there a way to do that? ---------------------------------------------------------------------------- ---- Equipe Pratic Sistemas Rodrigo Corrêa Fone: (14) 441-1700 suporte@praticsistemas.com.br rodrigo@praticsistemas.com.br

« previous php.db (#24616) next »