Created
April 25, 2012 18:13
-
-
Save phudgins/2491813 to your computer and use it in GitHub Desktop.
Iterate through a Date Range
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(30.days.ago.to_date..Date.today).each do |date| | |
puts date.to_s | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment