L PROTECTED]
> Subject: Re: [PHP] Date () Help please
>
> OK thought I should share in case any needs it but got it to work.
Here
> is
> what it looks like and thanks to Richard Baskett for the help.
>
> $yr= date (Y);
> $mnth = date (F);
> $dy= 1;
> $string = &q
t; I hope all of that makes sense to you. Check out the php manual for the
> > function date and strtotime.
> >
> > http://www.php.net/date
> > http://www.php.net/strtotime
> >
> > Rick
> >
> > "Trust in the Lord with all your heart, And lean n
heck out the php manual for the
> function date and strtotime.
>
> http://www.php.net/date
> http://www.php.net/strtotime
>
> Rick
>
> "Trust in the Lord with all your heart, And lean not on your own
> understanding; In all your ways acknowledge Him, And he shall dir
"Trust in the Lord with all your heart, And lean not on your own
understanding; In all your ways acknowledge Him, And he shall direct your
paths." - Proverbs 3:5-6
> From: "Attila" <[EMAIL PROTECTED]>
> Date: Mon, 15 Jul 2002 16:44:39 -0600
> To: [EMAIL PROTECTED
Hello all,
I am very new to PHP and I have added some minor PHP to my website. I
would like to make a PHP calander to keep track of things going on. Could
someone tell me how I can get the first day of every month.
For Example:
01 Jul 2002 was a Monday.
01 Mar 2002 will be a Thursday
I nee
Hi Sundog,
Can help you with dates (but no, if you want that kind you'll definitely not be
wanting my advice...)
- Original Message -
> I am trying to determine if todays date ($today) is within a week
> ($startcheck) of a given date ($dob). This is what I have so far.
>
> $todaydate = (
I am trying to determine if todays date ($today) is within a week
($startcheck) of a given date ($dob). This is what I have so far.
$todaydate = (date("Y-d-m"));
$today = strtotime($todaydate);
// $today prior to strtotime = 2001-10-11
$startcheck = strtotime(2001-08-11);
$dob = strtotime(2001-1
28/2003" is 28 Feb 2003 month is 2 End of month is 29
test date "2/29/2003" is 01 Mar 2003 month is 3 End of month is 31
test date "2/28/2004" is 28 Feb 2004 month is 2 End of month is 29
test date "2/29/2004" is 29 Feb 2004 month is 2 End of month is 29
last day
t
Better still, use the date("t"); to find out how many days are in the given
month. This part of the date function is a blessing, given the varying days
in months, and the fact that we've a leap year every four years.
James
"Daniel Rezny" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">ne
cho "last day";
or something else :)
> - Original Message -
> From: Yamin Prabudy <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 23, 2001 5:27 PM
> Subject: [PHP] date HELP !
>
>> hi,
>> how do i chec
Hello Yamin,
Monday, July 23, 2001, 9:27:46 AM, you wrote:
YP> hi,
YP> how do i check that the current date is the end of month
YP> Thanks in Advance
If you want to check how long is current month and use this value
later you can use this:
$month=("m"); //can be like this depend on if you s
$todaydate = date("m");
$tomorrowdate = date("m",time() + 86400);
if($todaydate != $tomorrowdate){
echo "Tomorrow is a new month";
}
- Original Message -
From: Yamin Prabudy <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July
hi,
how do i check that the current date is the end of month
Thanks in Advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
13 matches
Mail list logo