Skip to content

Instantly share code, notes, and snippets.

function convert2_humanreadable_dateformat($date,$delimeter,$has_time) {
$date_arr = array();
$date_arr_time = explode(" ",$date);
$date_arr = explode($delimeter,$date_arr_time[0]);
if ($has_time) {
$result = $date_arr[2]."/".$date_arr[1]."/".$date_arr[0]." ".$date_arr_time[1];
}
else {