I don't think there is since MySql is a db and not so much of a scripting
language. Perl or PHP have functions that could do something like that.

Regards,
Bhavin.
----- Original Message -----
From: "Octavian Rasnita" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 26, 2002 5:44 AM
Subject: Finding out the number of days from a month in MySQL


> Hi all,
>
> I want to find out the number of days in MySQL for the current month and I
> found that I need to use something like:
>
> - getting the current date.
> - Finding the first date of the current month.
> - Finding the first date of the next month.
> - Substracting a day for finding the last day of the current month.
> - Getting the day of month for the last day of the current month.
>
> Isn't there a more simple method, or a function for finding this?
>
> Thank you.
>
> Teddy,
> Teddy's Center: http://teddy.fcc.ro/
> Email: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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

Reply via email to