Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Date#prev_day

prev_day(n = 1) → new_date

Equivalent to Date#- with argument n.

See also #next_year #prev_month #next_month #prev_year also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0