String cellValue = "2022-12-01"
String[] dateFormat = {"yyyy-MM-dd","yyyy/MM/dd","yyyy年MM月dd日","yyyyMMdd"};
Date cellDate = DateUtils.parseDate(String.valueOf(cellValue), dateFormat);
注意:DateUtils所属的包为:
import org.apache.commons.lang.time.DateUtils;