Re: Month identification
| From: | Armin Steiner | Date: | Sun, 21 May 2000 13:14:18 +0000 |
| Subject: | Re: Month identification | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239@lists.php.net to get a copy of this message | ||
Sent: Monday, May 22, 2000 2:55 AM
Subject: [PHP-GENERAL] Month identification
> is there a way to get the actual date using PHP and getting the month
from
> it?
>
> What is the sintax? Could someone send some examples?
Hi Rafel,
use function date() for this. if you just want to get the
month out of the date, you can use date("m").
Generally:
echo date("Y-m-d"); /*Outputs: 2000-05-21 */
find more about the syntax in the manual at:
http://www.php.net/manual/function.date.php
with best regards,
-Armin
--
PHP Centralpoint - Dynamic Web Pages @t http://www.dynamic-webpages.de
PHP at europeans largest LINUX-Fair. More infos @ Dynamic Web Pages