title: Java - Formatting and get name of day: Date object
body: <p>All </p>
  
  <p>When I define a date object it automatically assumes it's MM/dd/YYYY, however I enter it as dd/MM/yyyy.</p>
  
  <pre><code>Date d1 = new Date("5/12/2015 10:30:00");
  </code></pre>
  
  <p>When I get the name of the day from that date it gives me the name of May 12 (Tuesday) instead of the name of december 5 (Saturday).</p>
  
  <pre><code>dateName = new SimpleDateFormat("EEEE", Locale.ENGLISH).format(d1);
  </code></pre>
  
  <p>Can anyone help me out?</p>