function dater($format = "", $date = "")
{
if($format == "") $format = "Y-m-d H:i:s";
if($date == "") $date = time();
$converted = strtotime($date);
if($converted === false)
return date($format, $date);
else
return date($format, $converted);
}
Leave a Reply
You must be logged in to post a comment.