- if (year == null) {
- Calendar now = Calendar.getInstance();
- int thisYear = now.get(Calendar.YEAR);
- if (month == null) {
- int thisMonth = now.get(Calendar.MONTH) + 1;
- toParse = String.format(Locale.US, "%04d/%02d/%s", thisYear, thisMonth, dateString);