1 import org.joda.time.DateTime;
2 import org.joda.time.format.DateTimeFormat;
3 import org.joda.time.format.DateTimeFormatter;
5 public class Solution {
7 public static int daysOfMonth(String arg0, String arg1) {
8 DateTimeFormatter v1 = DateTimeFormat.forPattern(arg1);
9 DateTime v2 = DateTime.parse(arg0, v1);
10 DateTime.Property v3 = v2.dayOfMonth();
11 int v4 = v3.getMaximumValue();