Allow datetime objects