Member group
FormatDate
Declaring type: DateTimeFormat
Module: System.Globalization
Assembly: System.Runtime.dll
Source file: DateTimeFormat.rvn
Overloads / Variants
FormatDate
func FormatDate(date: Date, format: string) -> Result<string, InvalidDateError>
Source file: DateTimeFormat.rvn
Supports empty/G/d for the selected numeric date, and O/o for invariant Gregorian yyyy-MM-dd. Other specifiers fault. Selected-calendar range failures retain InvalidDateError.
Parameters
| Name | Type | Description |
|---|---|---|
date |
Date | |
format |
String |
Return value
Result<String, InvalidDateError>
FormatDate
func FormatDate(date: Date) -> Result<string, InvalidDateError>
Source file: DateTimeFormat.rvn
Formats calendar fields using the selected culture; Hebrew-calendar he-IL uses Hebrew letters.
Parameters
| Name | Type | Description |
|---|---|---|
date |
Date |