title: Stream filter for Date
body: <p>I have a list of custom objects, which have a <code>String</code> field to store the date.</p>
  
  <p>I need to write a filter to fetch the list of custom objects based on the condition: if days between custom object date and current date is equals to 4 then return the satified object in list.</p>
  
  <p>I tried to parse the custom object string date to <code>ZonedDateTime</code> in filter. But it's expecting the <code>try</code>/<code>catch</code> block. How to handle this case?</p>
  
  <p>Code:</p>
  
  <pre><code>list.stream().filter(ChronoUnit.DAYS.between(currDate,
      ZonedDateTime.ofInstant((df.parse(stringdate).toInstant(),ZoneId.of("UTC"))) == 4)
  </code></pre>