how can I get from a MySQL date (e.g. 2010-09-08 04:02:20) and output the day of week (e.g. Monday)?
I had the following suggested:
Code: Select all
print "</br>";print "</br>";print "</br>";
$a = date("2010-09-08 04:20:02");
$b = date("H,i,s,d,m,Y",$a);
print $b;
$c = mktime($b);
$d = date("F dS, Y", $c) ;
$e= date("l", $c) ;
Echo "$d is on a $e";
Notice: A non well formed numeric value encountered in C:\wamp\www\test1.php on line 6
00,33,30,01,01,1970
Notice: A non well formed numeric value encountered in C:\wamp\www\test1.php on line 9
September 15th, 2010 is on a Wednesday
but that's todays date, not the date I input.