Sijo Kg wrote: > Hi > Could you please help this also..I have a string > sd_ticket_end_date= 15/01/2008 > Then how can I format this to 01/15/2008 > > > Sijo Example 1: a="15/01/2008" x=a[0,2] a[0,2]=a[3,2] a[3,2]=x puts a => 01/15/2008 Regards, P.Raveendran http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/.