2 # Returns a JSON string representing the date. If ActiveSupport.use_standard_json_time_format is set to true, the
3 # ISO 8601 format is used.
7 # # With ActiveSupport.use_standard_json_time_format = true
8 # Date.new(2005,2,1).to_json
11 # # With ActiveSupport.use_standard_json_time_format = false
12 # Date.new(2005,2,1).to_json
14 def to_json(options
= nil)
15 if ActiveSupport
.use_standard_json_time_format
16 %("#{strftime("%Y-%m-%d")}")
18 %("#{strftime("%Y/%m/%d")}")