require 'date'date = Date.new( 2006, 11, 8 )date.downto( date - 5 ) { |date| puts date }# date has changeddate.to_s # => "2007-11-03"