Class KiwiDateTimeParsers

java.lang.Object
org.kiwiproject.time.KiwiDateTimeParsers

public final class KiwiDateTimeParsers extends Object
A collection of small utilities to parse strings into various types of Java date/time classes, both the legacy Date and the Java 8 date/time API classes in java.time.

Please make sure you actually read the method documentation, so you know the format(s) that are expected or allowed.

While the JDK has decided to keep the formatting and parsing methods together in DateTimeFormatter, we decided to split them into separate utilities. So if you are looking for utilities to format date/time objects into strings, see KiwiDateTimeFormatters.

None of these are difficult to implement, but if you are constantly doing them, the time and code adds up over time.

All methods throw IllegalArgumentException if null or blank arguments are passed to them.