Function: formatYearDropdown()
formatYearDropdown(
year,dateLib):string
Defined in: src/formatters/formatYearDropdown.ts:13
Formats the year for the dropdown option label.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
year | Date | undefined | The year to format. |
dateLib | DateLib | defaultDateLib | The date library to use for formatting. Defaults to defaultDateLib. |
Returns
string
The formatted year as a string.