Added dates back to schema.

Updated schema generation code meaning that generation of dates is possible.