Getting dates in different convenient string representations and other objects

Methods
Constants
DATE_FORMATS = { :db => Proc.new { |start, stop| "BETWEEN '#{start.to_s(:db)}' AND '#{stop.to_s(:db)}'" }
Public Instance methods
to_formatted_s(format = :default)
    # File vendor/rails/activesupport/lib/active_support/core_ext/range/conversions.rb, line 15
15:         def to_formatted_s(format = :default)
16:           DATE_FORMATS[format] ? DATE_FORMATS[format].call(first, last) : to_default_s   
17:         end