I have in a database a date field (this format yyy/mm/dd). I'd like when I
display the value use an another format dd/mm/yyyy (format in europ), could
you tell me if there is a format DateString function ?
Thanks,
Christian,
I usually do:
<?
$query = "SELECT UNIX_TIMESTAMP(datefield) as unixtime FROM table";
$timestamp = mysql_result($result, "unixtime");
$date = date("d/m/Y", $timestamp);
echo $date;
?>
Regards,
Filip de Waard