Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

FormatLocalDateTime

Declaring type: DateTimeFormat
Module: System.Globalization
Assembly: System.Runtime.dll
Source file: DateTimeFormat.rvn

Overloads / Variants

FormatLocalDateTime

func FormatLocalDateTime(value: LocalDateTime, format: string) -> Result<string, InvalidDateError>

Source file: DateTimeFormat.rvn

Supports empty/G for the selected civil conventions, O/o for invariant seven-digit precision, and s for invariant yyyy-MM-ddTHH:mm:ss. No format adds an offset or a zone. Other specifiers fault; selected-calendar range failures retain InvalidDateError.

Parameters

Name Type Description
value LocalDateTime
format String

Return value

Result<String, InvalidDateError>

FormatLocalDateTime

func FormatLocalDateTime(value: LocalDateTime) -> Result<string, InvalidDateError>

Source file: DateTimeFormat.rvn

Invariant uses T; named cultures use a space. No offset or timezone is implied.

Parameters

Name Type Description
value LocalDateTime

Return value

Result<String, InvalidDateError>