Ok after wrestling with it for awhile... here...
<?php
$dt = 20030510184400;
$year = mysqlShowTime($dt);
echo $year;
function mysqlShowTime($timestamp) {
$year = substr($timestamp, 0, 4);
$month = substr($timestamp, 4, 2);
$day = substr($timestamp, 6, 2);
$hour = substr($timestamp, 8, 2);
$minutes = substr($timestamp, 10, 2);
$seconds = substr($timestamp, 12, 2);
$show = mktime($hour, $minutes, $seconds, $month, $day, $year);
$showTime = date("M jS Y g:Ha", $show);
return $showTime;
}
?>
I HOPE YOU'RE HAPPY!! cries It wokrs btw...