@technobuddha > library > Time > Year
Function: isSameYear()
ts
function isSameYear(
input1: Date,
input2: Date,
options: SameYearOptions): boolean;Defined in: is-same-year.ts:21
Determine if two dates occur in the same year
Parameters
| Parameter | Type | Description |
|---|---|---|
input1 | Date | The first date |
input2 | Date | The second date |
options | SameYearOptions | see SameYearOptions |
Returns
boolean
true, if the two dates occur in the same year
Default Value
ts
utc false