error for invalid dates, allow variable day size (e.g. 1 instead of 01)