For a good strftime
Easy skeezy date/time formatting
8
http://www.foragoodstrftime.com/
over 1 year ago

Do not forget that in Rails, you should use, when possible, i18n to format your date. If you have the rails-i18n gem in your Gemfile, here are some default formats available:

<%= l Date.now, format: :default %>
<%= l Date.now, format: :long %>
<%= l Date.now, format: :short %>

Same idea for time

over 1 year ago

@ssaunier nice !!

Cancel
Submit your answer