diff --git a/apps/red-ui/src/app/modules/admin/screens/license/utils/functions.ts b/apps/red-ui/src/app/modules/admin/screens/license/utils/functions.ts index 2e5a7808f..1c29ba8b2 100644 --- a/apps/red-ui/src/app/modules/admin/screens/license/utils/functions.ts +++ b/apps/red-ui/src/app/modules/admin/screens/license/utils/functions.ts @@ -2,7 +2,7 @@ import dayjs from 'dayjs'; import { IDateRange } from '@red/domain'; export function toDate(month: number, year: number) { - return dayjs(`${month}-01-${year}`, 'MM-DD-YYYY').toDate(); + return dayjs(`01-${month}-${year}`, 'D-M-YYYY').toDate(); } export function isCurrentMonth(month: number, year: number) {