adding support for DateTimeInterface