title: How check if today is sunday with Java Calendar
body: <p>I wrote few lines of code which doesn't work correctly. Why? Could sb explain me?</p>
  
  <pre><code>    Calendar date = Calendar.getInstance();
  
      date.set(2010, 03, 7);
  
      if(date.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY)
          System.out.println("OK");
  </code></pre>