toOffsetDateTime

Works off of String representations of OffsetDateTime (ISO default: "2024-11-15T12:34:56+01:00"). When formats are provided, each format is attempted in-order until one succeeds.

Return

OffsetDateTime? Null means couldn't parse, else parsed OffsetDateTime.

Parameters

this

String representation of OffsetDateTime.

formats

String? vararg of formats to attempt when parsing.