Use sprintf and sscanf functions to parse and format. Thanks & Regards Udayakumar Sarangapani Sr. PHP Developer CompIndia Infotech Pvt. Ltd. Chennai. "Science is nothing but logic..." ________________________________ From: malayappa2000 <malayappa@xxxxxxxxxxxxxxxxxxx> To: php-objects@xxxxxxxxxxxxxxx Sent: Monday, 2 February, 2009 5:31:24 PM Subject: how to split the stirng(02-02-2009 13:24:27) hi guys we are the fallowing sting 01-31-2009 13:24:27 we need to split sec in the above stirng i.e we need out put in the fallowing formta 01-31-2009 13:24 provide some help ho to achive this. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ [Non-text portions of this message have been removed]