答复: [PHP-DB] Values in a date field
| From: | Jacob | Date: | Sat, 17 Mar 2007 14:11:19 +0000 |
| Subject: | 答复: [PHP-DB] Values in a date field | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43297@lists.php.net to get a copy of this message | ||
$date=Getdate($subsciption_begins);
$month=$date[mon]
-----邮件原件-----
发件人: Ron Piggott [mailto:ron.php@actsministries.org]
发送时间: 2007年3月17日 21:45
收件人: PHP DB
主题: [PHP-DB] Values in a date field
I have a $subscription_begins variable. It the date type. YYYY-MM-DD
How may I find out the month value (1 to 12) of this variable?
Ron