getThisMonth method

String getThisMonth()

获取当前日期的月份字符串(两位,01-12)

示例:DateTime.now().getThisMonth() -> "01"

Implementation

String getThisMonth() {
  return month.toString().padLeft(2, '0');
}