Returns the number of years since date, rounded down
date
const today = new Date();const date = new Date(today.setMonth(today.getMonth() - 18));yearsPassed(date); // 1 Copy
const today = new Date();const date = new Date(today.setMonth(today.getMonth() - 18));yearsPassed(date); // 1
Returns the number of years since
date
, rounded down