From: Kamarulnizam Rahim Date: 2011-02-03T13:36:43+09:00 Subject: Re: Converting date format (CSV to yaml) Hi, I used the following code: cdate = "2011-01-12" m, d, y = cdate.split('/').map{|i| if i.length == 1 then "0#{i}" else i end} pp ydate = "#{y}-#{d}-#{m}" Output: "2011-01-12" How i change it to: 2011-01-12 <-- without the quotation mark Nizam -- Posted via http://www.ruby-forum.com/.