更新时间:2023-02-13 17:15:27
您可以看看:
HSSFDateUtil.isCellDateFormatted()
查看POI可怕的小号preadsheet格式的更多详细信息的API上HSSFDateUtil:
See the POI Horrible Spreadsheet Format API for more details on HSSFDateUtil:
http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFDateUtil.html
这也提供了Excel中返回一些辅助方法 getExcelDate()
和Java日期 getJavaDate()
。你需要有所警惕不同的日期格式,虽然...
That also provides some helper methods for returning Excel getExcelDate()
and Java dates getJavaDate()
. You need to be somewhat wary of different date formats though...