# Table of Contents - date: Ruby Standard Library Documentation

## Classes and Modules

- Date
  - Creating a Date
  - Argument `limit`
- Date::Error
- DateTime
  - DateTime
  - When should you use DateTime and when should you use Time?
- Time

## Methods

- ::_httpdate — Date
- ::_iso8601 — Date
- ::_jisx0301 — Date
- ::_parse — Date
- ::_rfc2822 — Date
- ::_rfc3339 — Date
- ::_rfc822 — Date
- ::_strptime — Date
- ::_strptime — DateTime
- ::_xmlschema — Date
- ::civil — Date
- ::civil — DateTime
- ::commercial — Date
- ::commercial — DateTime
- ::gregorian_leap? — Date
- ::httpdate — Date
- ::httpdate — DateTime
- ::iso8601 — Date
- ::iso8601 — DateTime
- ::jd — Date
- ::jd — DateTime
- ::jisx0301 — Date
- ::jisx0301 — DateTime
- ::julian_leap? — Date
- ::leap? — Date
- ::new — Date
- ::new — DateTime
- ::now — DateTime
- ::ordinal — Date
- ::ordinal — DateTime
- ::parse — Date
- ::parse — DateTime
- ::rfc2822 — Date
- ::rfc2822 — DateTime
- ::rfc3339 — Date
- ::rfc3339 — DateTime
- ::rfc822 — Date
- ::rfc822 — DateTime
- ::strptime — Date
- ::strptime — DateTime
- ::today — Date
- ::valid_civil? — Date
- ::valid_commercial? — Date
- ::valid_date? — Date
- ::valid_jd? — Date
- ::valid_ordinal? — Date
- ::xmlschema — Date
- ::xmlschema — DateTime
- #+ — Date
- #- — Date
- #<< — Date
- #<=> — Date
- #=== — Date
- #>> — Date
- #ajd — Date
- #amjd — Date
- #asctime — Date
- #ctime — Date
- #cwday — Date
- #cweek — Date
- #cwyear — Date
- #day — Date
- #day_fraction — Date
- #deconstruct_keys — Date
- #deconstruct_keys — DateTime
- #downto — Date
- #england — Date
- #friday? — Date
- #gregorian — Date
- #gregorian? — Date
- #hour — DateTime
- #httpdate — Date
- #infinite? — Date
- #inspect — Date
- #iso8601 — Date
- #iso8601 — DateTime
- #italy — Date
- #jd — Date
- #jisx0301 — Date
- #jisx0301 — DateTime
- #julian — Date
- #julian? — Date
- #ld — Date
- #leap? — Date
- #mday — Date
- #min — DateTime
- #minute — DateTime
- #mjd — Date
- #mon — Date
- #monday? — Date
- #month — Date
- #new_offset — DateTime
- #new_start — Date
- #next — Date
- #next_day — Date
- #next_month — Date
- #next_year — Date
- #offset — DateTime
- #prev_day — Date
- #prev_month — Date
- #prev_year — Date
- #rfc2822 — Date
- #rfc3339 — Date
- #rfc3339 — DateTime
- #rfc822 — Date
- #saturday? — Date
- #sec — DateTime
- #sec_fraction — DateTime
- #second — DateTime
- #second_fraction — DateTime
- #start — Date
- #step — Date
- #strftime — Date
- #strftime — DateTime
- #succ — Date
- #sunday? — Date
- #thursday? — Date
- #to_date — Date
- #to_date — DateTime
- #to_date — Time
- #to_datetime — Date
- #to_datetime — DateTime
- #to_datetime — Time
- #to_s — Date
- #to_s — DateTime
- #to_time — Date
- #to_time — DateTime
- #to_time — Time
- #tuesday? — Date
- #upto — Date
- #wday — Date
- #wednesday? — Date
- #xmlschema — Date
- #xmlschema — DateTime
- #yday — Date
- #year — Date
- #zone — DateTime