enforced correct formatting of date fields