Dec 13, 2001 #1 kpdvx Programmer Dec 1, 2001 87 US i want to pass a date to a function, and have it return the day of the week like date(w) does, (1=monday 2=tuesday, etc.) anyone know of any code like this?
i want to pass a date to a function, and have it return the day of the week like date(w) does, (1=monday 2=tuesday, etc.) anyone know of any code like this?
Dec 13, 2001 Thread starter #2 kpdvx Programmer Dec 1, 2001 87 US opps, i need it the other way around, i need to pass date(w) to a function, and have it give me a date back. Upvote 0 Downvote
opps, i need it the other way around, i need to pass date(w) to a function, and have it give me a date back.
Dec 14, 2001 #3 AnakinPt Programmer Mar 29, 2001 583 PT $daysofweek=array(monday=>1,tuesday=>2,...) return $daysofweek[$w]; Where $w stands for (monday,tue...) Anikin Hugo Alexandre Dias Web-Programmer anikin_jedi@hotmail.com Upvote 0 Downvote
$daysofweek=array(monday=>1,tuesday=>2,...) return $daysofweek[$w]; Where $w stands for (monday,tue...) Anikin Hugo Alexandre Dias Web-Programmer anikin_jedi@hotmail.com