Date parameter type check to accept DateTime and Date not just timestamp