What's the next day? : next « Date « Ruby






What's the next day?


require 'date'

date = Date.new( 2006, 11, 8 )

date.next.to_s # => "2006-11-09"

 








Related examples in the same category

1.next finds the next day but does not change date in-place.