getThisMonth method
获取当前日期的月份字符串(两位,01-12)
示例:DateTime.now().getThisMonth() -> "01"
Implementation
String getThisMonth() {
return month.toString().padLeft(2, '0');
}
获取当前日期的月份字符串(两位,01-12)
示例:DateTime.now().getThisMonth() -> "01"
String getThisMonth() {
return month.toString().padLeft(2, '0');
}