Found a great little snippet of code to use for converting from American to Euro date format and back.
$date=’12/31/2006’;
print ereg_replace(”([0-9] )/([0-9] )/([0-9] )”,”\\2/\\1/\\3″,$date);
Thanks to last-child.com for the Snippet.
Found a great little snippet of code to use for converting from American to Euro date format and back.
$date=’12/31/2006’;
print ereg_replace(”([0-9] )/([0-9] )/([0-9] )”,”\\2/\\1/\\3″,$date);
Thanks to last-child.com for the Snippet.
8 Responses to “PHP - Convert American to European Date Format”
Please Wait
Leave a Reply