Package org.apache.poi.ss.util
Class DateParser
- java.lang.Object
-
- org.apache.poi.ss.util.DateParser
-
- Direct Known Subclasses:
DateParser
public class DateParser extends Object
Parser for java dates.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DateParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Calendar
parseDate(String strVal)
static LocalDate
parseLocalDate(String strVal)
Parses a date from a string.
-
-
-
Method Detail
-
parseLocalDate
public static LocalDate parseLocalDate(String strVal) throws EvaluationException
Parses a date from a string.- Parameters:
strVal
- a string with a date pattern.- Returns:
- a date parsed from argument.
- Throws:
EvaluationException
- exception upon parsing.
-
parseDate
public static Calendar parseDate(String strVal) throws EvaluationException
- Throws:
EvaluationException
-
-