Jump to content

How do i (n00b question)


ccrevcypsys

Recommended Posts

An easier solution is using the mysql TO_DATE function (google it) and pull it out how you want it, or www.php.net/strtotime  which converts most dates into a unix time stamp to avoid the nasty ness of mktime() and explode function.

 

<?php
function formatDate($val)
{
return date ('d M Y', strtotime($val));
}
?>

 

Adds a bit more efficiency I guess, either way should work.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.