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
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 = "$dy $mnth $yr"; $today = date("w",strtotime($string)); Thanks for the help Attila http://www.glorynaspira

Re: [PHP] Date () Help please

2002-07-15 Thread Attila
Ok your way works and thanks for the help but still struggling a little bit here is what I have. $year = date (Y); //This gets me the current year 2002 $month = date (m); //This gets me the current month 07 $day= 1; //always looking for the 1st day of the month

Re: [PHP] Date () Help please

2002-07-15 Thread Richard Baskett
$today = date("w"); // $today will result in '1' $today = date("D"); // $today will result in 'Mon' $today = date("l"); // $today will result in 'Monday' Now if you wanted to feed the script something like this: $string = "01 Jul 2002"; $today = date("l",strtotime($string)); This will result in