title: Java day of the week from string
body: <p>I have this simple code:</p>
  
  <pre><code>SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
  Date date = format.parse("2011-10-29");
  calendar.setTime(date);
  Log.d("Debug","Day of the week = "+(calendar.get(Calendar.DAY_OF_WEEK)==Calendar.SATURDAY));
  </code></pre>
  
  <p>The 29th of October is a Saturday so why do I get false?</p>