Skip to content

Commit af44078

Browse files
author
371718330@qq.com
committed
获得月份 01-12
1 parent 618fd9e commit af44078

File tree

1 file changed

+9
-0
lines changed
  • CommonUtil/src/main/java/com/jingewenku/abrahamcaijin/commonutil

1 file changed

+9
-0
lines changed

CommonUtil/src/main/java/com/jingewenku/abrahamcaijin/commonutil/AppDateMgr.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,15 @@ public static String month_full_name(Date date) {
14391439
return String.format("%tB", date);
14401440
}
14411441

1442+
/**
1443+
* 获得月份 01-12
1444+
*
1445+
* @param date
1446+
* @return
1447+
*/
1448+
public static String month(Date date) {
1449+
return String.format("%tm", date);
1450+
}
14421451

14431452

14441453

0 commit comments

Comments
 (0)