Improve date parsing.

Handle partial year specifications, as in the spec.

Date part:
	YYYY
	YYYY-MM
	YYYY-MM-DD

Optional time part:
	THH:mm
	THH:mm:ss
	THH:mm:ss.sss

Optional timezone part:
	Z
	+HH:mm
	-HH:mm