fixed date fields when no date supplied from record
removed debug code
Merge pull request #6 from mhouchin/master

Half a fix for date field