File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
activesupport/lib/active_support/core_ext/date Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ class Date
37
37
# date.to_formatted_s(:rfc822) # => "10 Nov 2007"
38
38
# date.to_formatted_s(:iso8601) # => "2007-11-10"
39
39
#
40
- # == Adding your own time formats to to_formatted_s
40
+ # == Adding your own date formats to to_formatted_s
41
41
# You can add your own formats to the Date::DATE_FORMATS hash.
42
42
# Use the format name as the hash key and either a strftime string
43
43
# or Proc instance that takes a date argument as the value.
44
44
#
45
- # # config/initializers/time_formats .rb
45
+ # # config/initializers/date_formats .rb
46
46
# Date::DATE_FORMATS[:month_and_year] = '%B %Y'
47
47
# Date::DATE_FORMATS[:short_ordinal] = ->(date) { date.strftime("%B #{date.day.ordinalize}") }
48
48
def to_formatted_s ( format = :default )
You can’t perform that action at this time.
0 commit comments