add support for DateTime objects