$timestamp = strtotime('2009-10-22'); $day = date('D', $timestamp); var_dump($day);
// Prints the day echo date("l") . "<br>";
date("Y-m-d h:i:sa")