Forum: Rails deployment How to change date format from Y/m/d to Y-m-d

43cf19e3d7142c223494340f93c49a8b?d=identicon&s=25 Annie smith (anniesmith)
on 2011-07-19 15:49
Hi all,

How to change date format from Y/m/d to Y-m-d in ruby?
thanks
E755752b8dbe10787b31214c817da87f?d=identicon&s=25 esha d. (esha_d)
on 2011-07-29 07:26
Date.today.strftime('%Y-%m-%d')

Esha
This topic is locked and can not be replied to.