title: Convert java.time.LocalDate to java.util.Date
body: <p>I have java.time.LocalDate Object in yyyy-MM-dd format.
  I would like to know how to convert this to java.util.Date with MM-dd-yyyy format. getStartDate() method should be able to return Date type object with the format MM-dd-yyyy.</p>
  
  <p><strong>DateParser class</strong></p>
  
  <pre><code>package com.accenture.javadojo.orgchart;
  
  import java.time.LocalDate;
  import java.time.format.DateTimeFormatter;
  import java.time.format.DateTimeParseException;
  import java.util.Locale;
  
  
      public class DateParser {
  
          public static LocalDate parseDate(String strDate){
  
              try{
                  if((strDate != null) &amp;&amp; !("").equals(strDate)){
  
                      DateTimeFormatter formatter = DateTimeFormatter.ofPattern("M/d/yyyy").withLocale(Locale.US);
                      LocalDate date = LocalDate.parse(strDate, formatter);
                      return date;
                  }
              } catch (DateTimeParseException e) {
  
                  e.printStackTrace();
              }
  
              return null;
          }
  
      }
  </code></pre>
  
  <hr>
  
  <pre><code>public Date getStartDate() {
  
      String fmd = format.format(startDate); 
  
      LocalDate localDate = DateParser.parseDate(fmd);
  
      return startDate;
  }
  </code></pre>