dalecosp, the klugemeister strikes again!
[563] Sat 03.Dec.2005 13:52:07
[kadmin@archangel][~/scripts]
cat date.php
<?php
$str = "02/12/2005 02:20";
$split = preg_split("/\//","$str");
$newstr = $split[1]."/".$split[0]."/".$split[2];
echo date("M/d/Y",strtotime($newstr)). "\n";
?>
WARNING: This script is such an awful kluge it will likely:
- Get me laughed out of the EL....
- Slow down most POSIX compliant operating systems....
- Kill Win2003 servers....
😃
But, I've not played with PCRE's for a few moons ... good practice.
Welcome to PHPBuilder, BTW ...