added a way to override default date parsing