Created
March 12, 2015 19:30
-
-
Save mattantonelli/e61939812dab709e40d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Check a valid date string to match the format 'YYYY-MM-DD' | |
| def valid_date?(date) | |
| Date.valid_date?(*date.split('-').map(&:to_i)) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment