APIdock / Ruby on Rails
/
Browse About
method

to_s

v3.1.0 - Show latest stable - Class: Date
to_s(format = :default)
public

Alias for Date#to_formatted_s

Related methods

  • Instance methods
  • +
  • -
  • >>
  • acts_like_date?
  • advance
  • ago
  • as_json
  • at_beginning_of_day
  • at_beginning_of_month
  • at_beginning_of_quarter
  • at_beginning_of_week
  • at_beginning_of_year
  • at_end_of_month
  • at_end_of_quarter
  • at_end_of_week
  • at_end_of_year
  • at_midnight
  • beginning_of_day
  • beginning_of_month
  • beginning_of_quarter
  • beginning_of_week
  • beginning_of_year
  • change
  • default_inspect
  • end_of_day
  • end_of_month
  • end_of_quarter
  • end_of_week
  • end_of_year
  • freeze
  • future?
  • in
  • inspect
  • iso8601
  • midnight
  • minus_with_duration
  • minus_without_duration
  • monday
  • months_ago
  • months_since
  • next_month
  • next_week
  • next_year
  • past?
  • plus_with_duration
  • plus_without_duration
  • prev_month
  • prev_week
  • prev_year
  • readable_inspect
  • rfc3339
  • since
  • sunday
  • to_date
  • to_datetime
  • to_default_s
  • to_formatted_s
  • to_s
  • to_time
  • to_time_in_current_zone
  • today?
  • tomorrow
  • weeks_ago
  • xmlschema
  • years_ago
  • years_since
  • yesterday
  • Class methods
  • current
  • tomorrow
  • yesterday
APIdock API Documentation Browser

© 2026 APIdock