added a way to override default date parsing

In a project I'm working on, I needed a way to do more with the date parsing than the default Pikaday allows.  The easiest and most flexible way was to just add an option to override the default date parsing.