<?php
$a = "20020211150245";
$b =
ereg_replace("([0-9]{4,4})([0-9]{2,2})([0-9]{2,2})([0-9]{2,2})([0-9]{2,2})([
0-9]{2,2})","\\1-\\2-\\3 \\4:\\5:\\6",$a);
print $b;
?>-----Original Message----- From: Sven Jacobs [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 5:03 AM To: [EMAIL PROTECTED] Subject: [PHP] dateformat hey all I want to convert 20020211150245 into 2002-02-11 15:02:45. Does somebody have the correct conversion for this ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

