add support for Date objects