Commit 4a862689 by 杨林龙

有效报表默认展示为当月~~~

1 parent 7bb21b9e
...@@ -1452,7 +1452,11 @@ public class DateUtil extends org.apache.commons.lang.time.DateUtils { ...@@ -1452,7 +1452,11 @@ public class DateUtil extends org.apache.commons.lang.time.DateUtils {
public static String getMonthOfNow() { public static String getMonthOfNow() {
Calendar cal = Calendar.getInstance(); Calendar cal = Calendar.getInstance();
return String.valueOf(cal.get(Calendar.MONTH) + 1); int month = cal.get(Calendar.MONTH) + 1;
if (month < 10) {
return "0".concat(String.valueOf(month));
}
return String.valueOf(month);
} }
public static void main(String[] args) { public static void main(String[] args) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!