Date parsing improvements