Posted by Floortje on 03/16/07 18:24
Krustov schreef:
> Swap 2007-03-15 to 15-03-2007
>
> Given i have 50,000 dates in a text file to change i'm looking for the
> fastest way of doing it .
lotsa ways .. try this one
$pieces=explode($date,'-');
$newdate = $pieces[2].'-'.$pieces[1].'-'.$pieces[0];
or take a look at the mysql date format or use substr() or whatever else
you can think of :-)
--
Arjen
http://www.hondenpage.com
Navigation:
[Reply to this message]
|