make it possible to have optional date fields
Merge pull request #1 from mmcc/master

make it possible to have optional date fields