title: convert java.util.Date to datastax's LocalDate
body: <p>I'm trying to convert a date in <code>yyyy-MM-dd</code> String format to datastax's LocalDate. I'm using following code to do that.</p>
  
  <pre><code>private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
  
  public static LocalDate getDate(String date) throws ParseException {
      Date d = DATE_FORMAT.parse(date);
      return LocalDate.fromMillisSinceEpoch(d.getTime());
  }
  </code></pre>
  
  <p>When I tested this method I'm not getting expected results.</p>
  
  <pre><code>public static void main(String[] args) throws ParseException {
      System.out.println(getDate("2017-11-22"));
  }
  // Actual Output:
  2017-11-21
  // Excpected Output:
  2017-11-22
  </code></pre>
  
  <p>Is there anything I'm missing here?</p>