FunctionsmonthsToYears()On this pagemonthsToYears() Returns the number of years equal to the given number of months. Usage import { monthsToYears } from 'easy-dates';monthsToYears(months); Prop types proptyperequireddefaultmonthsnumberyesnull Examples monthsToYears(12); // 1 monthsToYears(6); // 0.5 monthsToYears(24); // 2