I have a date like 2002-12-12 and I would like to run a function that would give me what day of the week it is? Does anyone know.
Read up on the date() function in the manual -
$date = '2002-12-12'; // convert date string to a timestamp $date = strtotime ($date); // format the timestamp $date = date("l",$date);
Hope this helps 😉