looking for any hints on how to find the DAY name (mon, tue wen etc..) of a given date for example.. i want to know the what day July 4th 2004 (in 06/04/2004 ) would be on and answer should return Sunday
anyone dont this type of thing before i am sure someone has?
$date = "09/01/2004"; echo date("l", strtotime($date));
<?php $date = "07/04/2004"; $ts = strtotime($date); echo date('F d, Y',$ts) . " falls on a " . date('l',$ts); ?>
Ohhh joy php! 🙂
thanks drawmack, LordShryku see you around on the next problem 🙂
manual helps too if i looked doh! // Prints: July 1, 2000 is on a Saturday echo "July 1, 2000 is on a " . date ("l", mktime(0,0,0,7,1,2000));