please help me format this string from input : 2006-06-16 16:23:27.703000 to output: 2006-06-16 16:23:27 or 2006-06-16 4:23:27 PM thanks a lot __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com