Created
June 23, 2016 20:07
-
-
Save anonymous/b981403d3d8da4e0232df952df514dd5 to your computer and use it in GitHub Desktop.
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
my_date = Date.new(2016,3,4) | |
last_day_of_month = Date.new(my_date.year, my_date.month, 1).next_month.prev_day |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment