getMonth static method

String getMonth(
  1. DateTime dateTime
)

Implementation

static String getMonth(DateTime dateTime) {
  String month = dateTime.month.toString();
  return (month.length == 1 ? '0' : '') + month;
}