Allow date to be DateTime object