added \DateTime support

I added support for \DateTime objects