On 02-Mar-2003 Steffan A. Cline wrote:
> Is there a function that I missed for calculating the number of days in a
> month?
>
TO_DAYS()
mysql> set @b:='2003-02-01';
Query OK, 0 rows affected (0.00 sec)
mysql> set @e:='2003-03-01';
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT TO_DAYS(@e) - TO_DAYS(@b) as FebDays;
+---------+
| FebDays |
+---------+
| 28 |
+---------+
1 row in set (0.00 sec)
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
(53kr33t w0rdz: sql table query)
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php