WIP
added methods to make the DateType work with Date objects.