Ask a Question related to PHP Development, Design and Development.
-
Ralph Guzman #1
RE: [PHP] LAST DAY OF MONTH
wow. I missed that one in the manual. I guess it's time for me to call
it a night.
Thanks.
-----Original Message-----
From: Sn!per [mailto:sniper@home.net.my]
Sent: Friday, August 15, 2003 1:21 AM
To: Ralph Guzman
Cc: PHP General Mailing List
Subject: Re: [PHP] LAST DAY OF MONTH
<? print date("t") ?>
rgds.
Quoting Ralph Guzman <ralph@nqionline.com>:
> How can I get the last day for the current month?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------
Ralph Guzman Guest
-
Getting the day of the month
I think it is kind of odd that the "day" property in the Date class will only return the day of the week and not the day of the month... How would... -
Get last day of month
Hi, Is there a way to get the last day of each month using CFMX7 pls? E.g. I want to obtain the last day of each month, 30th June 2005... -
to convert a month to previous month
How to convert a month to previous month in a very easy way? For example, I have AUGUST, but I want JULY to return. Thanks. *** Sent via... -
LAST DAY OF MONTH
How can I get the last day for the current month? -
Month(x) vs Between(x and y)
With few exceptions, if a column is in an expression in a search condition, no index on that column will be useable by the query processor. In... -
Sn!Per #2
RE: [PHP] LAST DAY OF MONTH
play with mktime to get the months that you want. the code snippet below is for July 2003:
--- start code ---
<?
$xMonths = mktime (0,0,0, date("m")-1,1,date("Y"));
print "total days in ".date("M",$xMonths)." = ".date("t",$xMonths)."<BR>";
print "and that WAS on ".date("D",$xMonths);
?>
--- end code ---
rgds.
Quoting Ralph Guzman <ralph@nqionline.com>:
> wow. I missed that one in the manual. I guess it's time for me to call
> it a night.
>
> Thanks.
>
>
> -----Original Message-----
> From: Sn!per [mailto:sniper@home.net.my]
> Sent: Friday, August 15, 2003 1:21 AM
> To: Ralph Guzman
> Cc: PHP General Mailing List
> Subject: Re: [PHP] LAST DAY OF MONTH
>
> <? print date("t") ?>
>
> rgds.
>
>
> Quoting Ralph Guzman <ralph@nqionline.com>:
>>> > How can I get the last day for the current month?
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
>
> ---------------------------------------------------
> Sign Up for free Email at http://ureg.home.net.my/
> ---------------------------------------------------
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------
Sn!Per Guest



Reply With Quote

