-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to parse "%m-%d-Y" #14
Comments
By design, this library emulates ruby 1.8.7 date parsing, which doesn't parse |
ok, thanks -:) |
In 1.1 and earlier our app was doing this: require 'american_date'
class << Date
remove_const(:AMERICAN_DATE_RE)
AMERICAN_DATE_RE = %r_\A\s*(\d{1,2})[-/](\d{1,2})[-/](\d{4}|\d{2})_.freeze
end However, this doesn't work in 1.2.x because of the switch to |
Looks like that is a bug in 1.2, because |
Thanks! Any idea when the fix will be pushed out? |
Hopefully I can release a new version later this week. |
Hi,
Right now it only parse dates in the strict format of
"%m/%d/%Y"
. Can we use"%m-%d-Y"
format also.With this
"%m-%d-Y"
format, when I tried to parse it, it raised an exceptionArgumentError: invalid date
The text was updated successfully, but these errors were encountered: