Skip to content
instance method

Date#succ

() -> ::Date
succ

Alias of #next

Returns a new Date object representing the following day:

Example
d = Date.new(2001, 2, 3)
d.to_s      # => "2001-02-03"
d.next.to_s # => "2001-02-04"
See also #next #strftime #sunday? #step also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0