Create a file like config/initializers/date_formats.rb
Date::DATE_FORMATS.merge!(
long_date: '%a, %B %e, %Y %l:%M %p',
short: '%A, %B %e, %Y',
hyphen: "%Y-%m-%d",
long_ordinal_prettier: "....."
)
You can use them like this
some_model.created_at.to_formatted_s(:long_ordinal_prettier)