public class ExcelDateUtil extends Object
Constructor and Description |
---|
ExcelDateUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isDateFormat(org.apache.poi.ss.usermodel.Cell cell) |
static boolean |
isDateFormat(org.apache.poi.ss.usermodel.Cell cell,
org.apache.poi.ss.formula.ConditionalFormattingEvaluator cfEvaluator)
判断是否日期格式
|
static boolean |
isDateFormat(org.apache.poi.ss.usermodel.ExcelNumberFormat numFmt)
判断是否日期格式
|
static boolean |
isDateFormat(int formatIndex,
String formatString)
判断日期格式
|
public static boolean isDateFormat(org.apache.poi.ss.usermodel.Cell cell)
public static boolean isDateFormat(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.formula.ConditionalFormattingEvaluator cfEvaluator)
cell
- 单元格cfEvaluator
- ConditionalFormattingEvaluator
public static boolean isDateFormat(org.apache.poi.ss.usermodel.ExcelNumberFormat numFmt)
numFmt
- ExcelNumberFormat
public static boolean isDateFormat(int formatIndex, String formatString)
formatIndex
- 格式索引,一般用于内建格式formatString
- 格式字符串Copyright © 2024. All rights reserved.