Page 1 of 1

Date format

PostPosted: Tue Feb 26, 2013 1:32 am
by Deluxe
Hi, i've been searching an way to solve my problem since some times right now, but it's only partially fixed.
I want to edit the US date format to EU format, so i used this method that you given in another topic :

function Date_emmenagement__display(&$record)
{
return date('d/m/Y', strtotime($record->strval('Date_emmenagement')));
}

The problem is that when there is no date in the field, it put automatically the date '01/01/1970' and i would that if there is no date, it stay with no date.
I hope i'm clear, thanks for support !