You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
luoo_parent/luoo_common/src/main/java/enums/DateTimePatternEnum.java

17 lines
352 B

package enums;
public enum DateTimePatternEnum {
YYYY_MM_DD_HH_MM_SS("yyyy-MM-dd HH:mm:ss"), YYYY_MM_DD("yyyy-MM-dd"), YYYYMM("YYYYMM"),YYYY_DOT_MM_DOT_DD("yyyy.MM.dd");
private String pattern;
DateTimePatternEnum(String pattern) {
this.pattern = pattern;
}
public String getPattern() {
return pattern;
}
}