Created
March 25, 2013 00:19
-
-
Save rudle/5234198 to your computer and use it in GitHub Desktop.
Date.strftime, Date.strptime don't commute
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
Date.today.strftime('%-m%-d%y') # 3242013 | |
Date.strptime('3242013','%-m%-d%y') # ArgumentError: invalid date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bug report it. should be a capital
Y
, though: