Package org.cactoos.time
Class DateOf
- java.lang.Object
-
- org.cactoos.time.DateOf
-
-
Constructor Summary
Constructors Constructor Description DateOf(CharSequence date)
Parses the provided date as ISO formatted.DateOf(CharSequence date, String format)
Parses the date using the provided format.DateOf(CharSequence date, DateTimeFormatter formatter)
Parsing the date using the provided formatter.
-
-
-
Constructor Detail
-
DateOf
public DateOf(CharSequence date)
Parses the provided date as ISO formatted.- Parameters:
date
- The date to parse.
-
DateOf
public DateOf(CharSequence date, String format)
Parses the date using the provided format.- Parameters:
date
- The date to parse.format
- The format to use.
-
DateOf
public DateOf(CharSequence date, DateTimeFormatter formatter)
Parsing the date using the provided formatter.- Parameters:
date
- The date to parse.formatter
- The formatter to use.
-
-