$dmY = "23062006";
$d = substr($dmY, 0,2); $m = substr($dmY,2,2); $y = substr($dmY,3,4); $date_fmt = $m ."/".$d."/".$y; print "Date format $date_fmt from $dmY\n"; _____ From: William Watson [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 8:52 AM To: [email protected] Subject: [php_mysql] Need help changing raw data into readable date format Hello, I have a raw data file that contains a date field. The date in this field is formatted as 23062006 (dmY). Do any of you know how I can convert 23062006 into 6/23/2006, so that it appears as a more readable date? Please provide a working code snippet, if possible. Thanks a million in advance! [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/CefplB/TM --------------------------------------------------------------------~-> The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php_mysql/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
