Annie smith wrote in post #1011629:
> Hi All,
>
> Do you know how to change date format from Y/m/d to Y-m-d in ruby?
>
> Thanks!

DateTime.now.strftime("%Y-%m-%d")

-- 
Posted via http://www.ruby-forum.com/.