Add default kwarg to datestr2num to fix #2481
Merge pull request #2481 from mdboom/datestr2num-fix

datestr2num of year and month fails on 29th, 30th, and 31st of month