make it possible to have optional date fields