title: Number of days in particular month of particular year?
body: <p>How to know how many days has particular month of particular year?</p>
  
  <pre><code>String date = "2010-01-19";
  String[] ymd = date.split("-");
  int year = Integer.parseInt(ymd[0]);
  int month = Integer.parseInt(ymd[1]);
  int day = Integer.parseInt(ymd[2]);
  Calendar calendar = Calendar.getInstance();
  calendar.set(Calendar.YEAR,year);
  calendar.set(Calendar.MONTH,month);
  int daysQty = calendar.getDaysNumber(); // Something like this
  </code></pre>