RE: [PHP] Date () Help please

2002-07-15 Thread John Holmes
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

Re: [PHP] Date () Help please

2002-07-15 Thread Attila
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

Re: [PHP] Date () Help please

2002-07-15 Thread Attila
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

Re: [PHP] Date () Help please

2002-07-15 Thread Richard Baskett
"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

[PHP] Date () Help please

2002-07-15 Thread Attila
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

Re: [PHP] Date help (no not that kind)

2001-11-11 Thread DL Neil
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 = (

[PHP] Date help (no not that kind)

2001-11-10 Thread sundogcurt
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

RE: [PHP] date HELP !!!!!

2001-07-23 Thread Andrew Braund
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

Re: [PHP] date HELP !!!!!

2001-07-23 Thread James Holloway
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

Re: [PHP] date HELP !!!!!

2001-07-23 Thread Henrik Hansen
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

Re: [PHP] date HELP !!!!!

2001-07-23 Thread Daniel Rezny
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

Re: [PHP] date HELP !!!!!

2001-07-23 Thread ReDucTor
$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

[PHP] date HELP !!!!!

2001-07-23 Thread Yamin Prabudy
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]