import dayjs from 'dayjs'; export const generateYearsRange = () => { const currentYear = dayjs(new Date()).format('YYYY'); const years = []; for (let i = 0; i < 12; i += 1) { years.push(String(Number(currentYear) + 5 - i)); } return years.reverse(); }; export const getFullMonthName = (month: string) => dayjs(month, 'MM').format('MMMM'); export const getSmallMonthName = (month: string) => dayjs(month, 'MM').format('MMM'); export const months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];