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

API Browser

Member group

ToString

Declaring type: Date
Module: System.Time
Assembly: System.Runtime.dll
Source file: Date.rvn

Overloads / Variants

ToString

func ToString(culture: Culture) -> string

Source file: Date.rvn

Formats with a culture's Gregorian default; no ambient culture is read.

Parameters

Name Type Description
culture Culture

Return value

String

ToString

func ToString(format: string, culture: Culture) -> string

Source file: Date.rvn

Implements Formattable.ToString

Formats with an explicit culture; unsupported specifiers fault. O/o is invariant.

Parameters

Name Type Description
format String
culture Culture

Return value

String

ToString

func ToString(format: string) -> string

Source file: Date.rvn

Formats with Culture.Current; supported formats are documented by DateTimeFormat.FormatDate.

Parameters

Name Type Description
format String

Return value

String

ToString

virtual override func ToString() -> string

Source file: Date.rvn

Overrides Object.ToString

Formats using Culture.Current; pass Culture.Invariant for deterministic output.

Return value

String