getString method

String getString(
  1. int month,
  2. int day
)

Implementation

static String getString(int month, int day) {
  return (month >= 10 ? month.toString() : "0$month") +
      (day >= 10 ? day.toString() : "0$day");
}