Method
CreateDate
func CreateDate(year: int, month: int, day: int) -> Result<Date, InvalidDateError>
Declaring type: Calendar
Module: System.Time
Assembly: System.Runtime.dll
Source file: Calendar.rvn
Converts calendar fields to a Date. The returned Date retains Gregorian convenience properties.
Parameters
| Name | Type | Description |
|---|---|---|
year |
Int32 | Calendar year within MinYear–MaxYear. |
month |
Int32 | One-based civil month; Hebrew leap years have 13. |
day |
Int32 | One-based day valid in the selected month. |
Return value
Result<Date, InvalidDateError>
Ok(Date), or InvalidDateError for invalid fields or range.