$query = "SELECT dayname('$sql_date') AS day_name"; ______________________________________________________________________
Perfection in engineering does not happen when there is nothing more to add.
Rather it happens when there is nothing more to take away.
hmm.. what i am trying to do is take the mysql datetime, 2002-10-10 and format it to say "Tuesday, October 10th, 2002" or whatver the datetime is. I can grab "Octover 10th, 2002" by using this:
// DATETIME STRING FORMAT FUNCTION.
function format_date($sql_date) {
$arr = explode("-", $sql_date);
return date("F j, Y", mktime(0,0,0, $arr[1], $arr[2], $arr[0]));
}
but i want to format it like i mentioned above. Any ideas?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.