Before I start I'm clueless when it comes to PHP. In my database it is generating an American date format mm/dd/yyyy I want to make this into a UK date format dd/mm/yyyy Is there a php code to convert this?
function ukdate($usdate) { return date('d/m/Y', strtotime($usdate)); } // Outputs: 28/12/2006 echo ukdate('12/28/2006'); PHP:
Cheers Nico!! I'll try that out tonight. Another question... I have a field called 'holiday type' the data in the field is 'Golf' but when I want to display it on the php page I want it to be 'golf' i.e. no capital G. Is there a way around this? Darren