toFullDateString

fun LocalDateTime.toFullDateString(): String

Formats this LocalDateTime as a full date string, e.g., "Mon 04/10/26 14:30:00".

Extension function on LocalDateTime.

Return

the formatted date/time string


fun LocalDateTime.toFullDateString(timeZone: TimeZone): String

Formats this LocalDateTime as a full date string suffixed with the UTC offset for timeZone, e.g., "Mon 04/10/26 14:30:00 -04:00" (a zero offset renders as "Z").

The receiver is interpreted as a wall-clock time in timeZone, so the offset reflects daylight saving where applicable — the same wall-clock time yields -05:00 in winter and -04:00 in summer for an eastern-US zone. kotlinx-datetime exposes the numeric offset rather than a letter abbreviation such as EST/EDT, which is ambiguous across regions. Resolving a named zone on Kotlin/JS and wasmJs requires the @js-joda/timezone npm package on the consumer side; fixed-offset and UTC zones need no database.

Extension function on LocalDateTime.

Return

the formatted date/time string with a trailing UTC offset

Parameters

timeZone

the zone used to resolve the offset