Functions: FnLocalDate

1. Overview

FnLocalDate is a function hub class containing a lot of static methods to convert from various input objects to LocalDate. Those static methods return functions whose output is LocalDate and whose input can be Calendar, Date, Integer list and Long among others.

2. Functions

Function nameTypeParamsDescription
calendarToLocalDateFunction<T, LocalDate>

It converts a Calendar into a LocalDate

calendarToLocalDateFunction<T, LocalDate>DateTimeZone dateTimeZone

It converts a Calendar into a LocalDate in the given DateTimeZone

calendarToLocalDateFunction<T, LocalDate>Chronology chronology

It converts a Calendar into a LocalDate with the given Chronology

dateToLocalDateFunction<T, LocalDate>

The input Date is converted into a LocalDate

dateToLocalDateFunction<T, LocalDate>DateTimeZone dateTimeZone

The input Date is converted into a LocalDate configured with the given DateTimeZone

dateToLocalDateFunction<T, LocalDate>Chronology chronology

The input Date is converted into a LocalDate with the given Chronology

integerFieldArrayToLocalDateFunction<Integer[], LocalDate>

A LocalDate is created from the given integer array.

The valid input Integer[] are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
integerFieldArrayToLocalDateFunction<Integer[], LocalDate>Chronology chronology

A LocalDate is created from the given integer array. The result will be created with the given Chronology

The valid input Integer[] are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
integerFieldCollectionToLocalDateFunction<Collection<Integer>, LocalDate>

A LocalDate is created from the given Integer Collection.

The valid input Collection<Integer> are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
integerFieldCollectionToLocalDateFunction<Collection<Integer>, LocalDate>Chronology chronology

A LocalDate is created from the given Integer Collection. The output LocalDate will be created with the given Chronology

The valid input Collection<Integer> are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
longToLocalDateFunction<Long, LocalDate>

The input Long representing the time in milliseconds is converted into a LocalDate

longToLocalDateFunction<Long, LocalDate>DateTimeZone dateTimeZone

The input Long representing the time in milliseconds is converted into a LocalDate in the given DateTimeZone

longToLocalDateFunction<Long, LocalDate>Chronology chronology

The input Long representing the time in milliseconds is converted into a LocalDate with the given Chronology

strFieldArrayToLocalDateFunction<String[], LocalDate>

A LocalDate is created from the given string array.

The valid input String[] are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
strFieldArrayToLocalDateFunction<String[], LocalDate>Chronology chronology

A LocalDate is created from the given string array. The output LocalDate will be created with the specified Chronology

The valid input String[] are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
strFieldCollectionToLocalDateFunction<Collection<String>, LocalDate>

A LocalDate is created from the given String Collection.

The valid input Collection<String> are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
strFieldCollectionToLocalDateFunction<Collection<String>, LocalDate>Chronology chronology

A LocalDate is created from the input String Collection. The result will be created with the given Chronology

The valid input Collection<String> are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
strToLocalDateFunction<String, LocalDate>String pattern

It converts the given String into a LocalDate using the given pattern parameter. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

strToLocalDateFunction<String, LocalDate>String pattern
DateTimeZone dateTimeZone

It converts the input String into a LocalDate using the given pattern parameter and with the given DateTimeZone. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

strToLocalDateFunction<String, LocalDate>String pattern
Chronology chronology

It converts the input String into a LocalDate using the given pattern parameter and with the given Chronology. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

strToLocalDateFunction<String, LocalDate>String pattern
Locale locale

It converts the input String into a LocalDate using the given pattern and Locale parameters

strToLocalDateFunction<String, LocalDate>String pattern
String locale

It converts the input String into a LocalDate using the given pattern and Locale parameters

strToLocalDateFunction<String, LocalDate>String pattern
Locale locale
DateTimeZone dateTimeZone

It converts the input String into a LocalDate using the given pattern and Locale parameters. The DateTime is created with the specified DateTimeZone

strToLocalDateFunction<String, LocalDate>String pattern
String locale
DateTimeZone dateTimeZone

It converts the input String into a LocalDate using the given pattern and Locale parameters. The DateTime is created with the specified DateTimeZone

strToLocalDateFunction<String, LocalDate>String pattern
Locale locale
Chronology chronology

It converts the input String into a LocalDate using the given pattern and Locale parameters. The DateTime will be created with the given Chronology

strToLocalDateFunction<String, LocalDate>String pattern
String locale
Chronology chronology

It converts the input String into a LocalDate using the given pattern and Locale parameters. The DateTime will be created with the given Chronology

timestampToLocalDateFunction<Timestamp, LocalDate>

The input Timestamp is converted into a LocalDate

timestampToLocalDateFunction<Timestamp, LocalDate>DateTimeZone dateTimeZone

The input Timestamp is converted into a LocalDate in the given DateTimeZone

timestampToLocalDateFunction<Timestamp, LocalDate>Chronology chronology

The input Timestamp is converted into a LocalDate with the given Chronology