function ChangeDate ($date) { 

   $day=substr($date,6,2);  //get the day
   $month=substr($date,4,2); //get the month
   $year=substr($date,0,4); //get the year
   $time=substr($date,8,4);  //get the time
   $secs=substr($date,12,2); //get the seconds
   $ret="$day $month $year @ $time h $secs s"; //var to be returned
   return ret; 

}

This funcion gets the date in the format you have and converts into a string the way 
you want. 
I hope this help. 

Rafael Perazzo 

"Philip J. Newman" <[EMAIL PROTECTED]> wrote on 26/01/02 14:35:30:
>
>I have had no luck changing:
>
>20020124020555
>
>into
>
>24 01 2002 @ 0205h 55s
>
>Can anyone put some light on this, I'm going nuts
>
>Philip J. Newman
>Philip's Domain - Internet Project.
>http://www.philipsdomain.com/
>[EMAIL PROTECTED]
>Phone: +64 25 6144012



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to