Enforce proper date formats.