convertToJavaLocalDate

@JvmName(name = "convertToJavaLocalDateFromT")
fun <T : Any> DataColumn<T>.convertToJavaLocalDate(): DataColumn<LocalDate>

Converts values in this column to JavaLocalDate.

Supported source types: String (parsed), Long and Int (epoch milliseconds), LocalDate, LocalDateTime, JavaLocalDateTime, StdlibInstant, DeprecatedInstant, JavaInstant.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalDate values.


Converts values in this column to JavaLocalDate. Preserves null values.

Supported source types: String (parsed), Long and Int (epoch milliseconds), LocalDate, LocalDateTime, JavaLocalDateTime, StdlibInstant, DeprecatedInstant, JavaInstant.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalDate nullable values.


@JvmName(name = "convertToJavaLocalDateFromString")
fun DataColumn<String>.convertToJavaLocalDate(formatter: DateTimeFormatter? = null, locale: Locale? = null): DataColumn<LocalDate>

Converts values in this String column to JavaLocalDate.

Trims each string and attempts to parse it using the specified formatter and locale. Fails with an exception if a value cannot be parsed.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalDate values.

Parameters

formatter

An optional DateTimeFormatter to use for parsing. If null, default parsers are used.

locale

An optional Locale for parsing. If null, the default locale is used.


@JvmName(name = "convertToJavaLocalDateFromStringPattern")
fun DataColumn<String>.convertToJavaLocalDate(pattern: String, locale: Locale? = null): DataColumn<LocalDate>

Converts values in this String column to JavaLocalDate.

Trims each string and attempts to parse it using the specified pattern and locale. Fails with an exception if a value cannot be parsed.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalDate values.

Parameters

pattern

A date pattern to use for parsing (e.g., "yyyy-MM-dd").

locale

An optional Locale for parsing. If null, the default locale is used.


@JvmName(name = "convertToJavaLocalDateFromStringNullable")
fun DataColumn<String?>.convertToJavaLocalDate(formatter: DateTimeFormatter? = null, locale: Locale? = null): DataColumn<LocalDate?>

Converts values in this nullable String column to JavaLocalDate. Preserves null values.

Trims each string and attempts to parse it using the specified formatter and locale. Fails with an exception if a value cannot be parsed.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalDate nullable values.

Parameters

formatter

An optional DateTimeFormatter to use for parsing. If null, default parsers are used.

locale

An optional Locale for parsing. If null, the default locale is used.


@JvmName(name = "convertToJavaLocalDateFromStringNullablePattern")
fun DataColumn<String?>.convertToJavaLocalDate(pattern: String, locale: Locale? = null): DataColumn<LocalDate?>

Converts values in this nullable String column to JavaLocalDate. Preserves null values.

Trims each string and attempts to parse it using the specified pattern and locale. Fails with an exception if a value cannot be parsed.

For more information: See convert on the documentation website.

Return

A new DataColumn with the JavaLocalDate nullable values.

Parameters

pattern

A date pattern to use for parsing (e.g., "yyyy-MM-dd").

locale

An optional Locale for parsing. If null, the default locale is used.