FunctionsyearsToMonths()On this pageyearsToMonths() Returns the number of months equal to the given number of years. Usage import { yearsToMonths } from 'easy-dates';yearsToMonths(years); Prop types proptyperequireddefaultyearsnumberyesnull Examples yearsToMonths(1); // 12 yearsToMonths(2.5); // 30 yearsToMonths('1'); // Error