title: Java number of week is different than Python and PHP
body: <p>I have some calculations being done based on the current week of the year. On this current date (4/26/2016), both Python and PHP return the current week as being the 17th week in the year. Java, however, returns 18. How do I ensure that Java returns the same as Python and php?</p>
  
  <pre><code>// Java
  Calendar now = Calendar.getInstance();
  now.get(Calendar.WEEK_OF_YEAR); // Returns 18
  
   // Python
   datetime.datetime.now().isocalendar()[1] // Returns 17
  
  // php
  
  $current_date = new DateTime('now');
  $current_date-&gt;format("W") // Returns 17
  </code></pre>