PHP: format dates

// Convert UK/US to NL Date
$nl = date('d-m-Y', strtotime('2010-05-10'));
// Convert NL to UK/US Date
$uk = date('Y-m-d', strtotime('10-05-2010'));

Leave a Reply