Last active
December 16, 2015 10:29
-
-
Save hzmangel/5420793 to your computer and use it in GitHub Desktop.
Generate 7 days date list from now on in Ruby
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
# Rails code | |
(Date.today..1.week.from_now.to_date).map { |d| d.strftime("%m/%d")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment