compareYear Type documentation¶
TypeScript declaration¶
import { compareYear } from '@siemens/element-ng/datepicker';Compares two years.
Returns: 0 if the years are equal, a number less than 0 if the first year is earlier, a number greater than 0 if the first year is later.
compareYear(first: Date, second: Date): number
Compares two years.
Returns: 0 if the years are equal, a number less than 0 if the first year is earlier, a number greater than 0 if the first year is later.
Except where otherwise noted, content on this site is licensed under MIT License.