Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple date function,

Status
Not open for further replies.

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?
 
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.
 
$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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top