accountant_date

accountant_date monkey-patches ruby’s Date class to add parsing functionality useful for parsing dates entered by accountants.

This gem is based on american style dates (e.g., mm/dd/yy) and is compatible with (american_date).

Accountants often deal with financial periods (mm/yy) and they also hate typing extra characters (e.g., ‘/’) since they enter so many dates. This gem enables ruby to parse the following formats:

In other words, to parse 1 Feb 2001, the following date entries could be parsed:

Or to get 3 Feb 2001:

Thanks

A big thanks to Jeremy Evans for the inspiration provided by his american_date gem: github.com/jeremyevans/ruby-american_date.

Contributing to accountant_date

Copyright © 2013 Ryan Winograd. See LICENSE.txt for further details.