Method
GetMonth
func GetMonth(date: Date) -> Result<int, InvalidDateError>
Declaring type: Calendar
Module: System.Time
Assembly: System.Runtime.dll
Source file: Calendar.rvn
Projects the calendar one-based civil month from an absolute Date.
Parameters
| Name | Type | Description |
|---|---|---|
date |
Date | Day to project. |
Return value
Result<Int32, InvalidDateError>
Ok(component), or InvalidDateError outside this calendar’s range.