How can I use US-style dates in Rails using Ruby 1.9?

后端 未结 7 1833
攒了一身酷
攒了一身酷 2021-01-04 09:21

I\'m in the U.S., and we usually format dates as "month/day/year". I\'m trying to make sure that my Rails app, using Ruby 1.9, assumes this format everywhere, and

7条回答
  •  别那么骄傲
    2021-01-04 09:59

    Gem: ruby-american_date

    This gem was created since I asked this question. I'm now using it and have been pleased.

    https://github.com/jeremyevans/ruby-american_date

提交回复
热议问题