title: Setting Boundaries for user cancellation of trip
body: <p>I am building a booking system and trying to limit the user's cancellation of the trip if he/she tried to cancel it one week before the actual date of the trip.</p>
  
  <p>In other words: The user booked the trip on July 1 and the trip starts on August 1. The user tried to cancel his/her booking of the trip on July 23rd. The system should block his/her request to cancel the trip. 
  I wanna make this date validation work when the user try to cancel the trip before the start date. Can anyone help me to validate the date the user request to cancel the trip.
  I have tried the code below but not sure if it is working properly</p>
  
  <pre><code>   This is the code I tried to implement:
  
       //Getting input values from jsp from                       
          LocalDate.parse(request.getParameter("startDate"));
          LocalDate endDate = (LocalDate) 
          LocalDate.parse(request.getParameter("endDate"));
  
          LocalDate startDate = (LocalDate) LocalDate.of(2020, 05, 01);
          LocalDate isexpDate = LocalDate.of(2020, 04, 01);
          if (startDate.minusWeeks(1).isBefore(isexpDate)) 
  </code></pre>
  
  <p>The start and end date should based on the user input</p>