Enable to use Datetime objects for time parameters