Added date and hour constrain