Could someone tell me how to convert a string from like "2000-10-13" into the correct day of the week, in this case Friday.
Thanks
do this:
date("l");
Andreas
Thanks, that gets me today's date. But what I need is to take a string like this: "2000-10-13" and get the day of the week.
Thanks, r.b.
Split the string apart on the '-', then use mktime() to convert the individual date components into a date serial number, which you can then use with date() as a second argument.
or simply have a look at the date() command in the manual...
:-)
Thanks but I have. Having found examples of everything except what I needed I asked for help.
r.b.
Take a look at this site:
http://www.informatik.uni-ulm.de/pm/mitarbeiter/mark/day_of_week.html
Thanks for the suggestion, that got it working.