> Anyone know how to convert date format of .csv to . yaml?
>
> .csv date format:
>
> 12/1/2011
>
> .yaml date format:
>
> 2011-01-12

cdate = "12/1/2011"
m, d, y = cdate.split('/').map{|i| if i.length == 1 then "0#{i}" else i end}
ydate = "#{y}-#{d}-#{m}"

The map part on the second line takes care of padding a single digit
month, and date with a '0'.

-- 
Anurag Priyam
http://about.me/yeban/