How do i change the following to show the hours, mins and secs. Ive tried "d M Y hⓂs" but it brings up the same time for each row that isnt even in the table
function formatdate($val)
{
$arr = explode("-", $val);
return date("d M Y", mktime(0,0,0, $arr[1], $arr[2], $arr[0]));
}