Hi all,
A date is returned rom MS SQL Server DB - 23 May 2006 0:00
How do I format it as dd/mm/yyyy
Thanks.
A combination of [MAN]strtotime[/MAN] and [MAN]date[/MAN]. Examples in the manual pages.
$mssqldate='23 May 2006'; $mydate=date('d/m/Y',strtotime($mssqldate)); echo $mydate;
So much for trying to get people to learn for themselves.