use DateTime for dates and fix schemaDataUrl check