Force document time to be within interested time interval