Skip to content

Commit 890b555

Browse files
committed
chore: remove unused exports
1 parent f662121 commit 890b555

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

apps/dashboard/src/utils/date-utils.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { differenceInDays } from "date-fns/differenceInDays";
21
import { format } from "date-fns/format";
32
import { isValid } from "date-fns/isValid";
4-
import { parseISO } from "date-fns/parseISO";
53

64
const DATE_TIME_LOCAL_FORMAT = "yyyy-MM-dd HH:mm";
75

@@ -18,12 +16,6 @@ export function toDateTimeLocal(date?: Date | number | string) {
1816
: undefined;
1917
}
2018

21-
export function withinDays(dateISO: string, days: number) {
22-
const date = parseISO(dateISO);
23-
const today = new Date();
24-
return differenceInDays(today, date) <= days;
25-
}
26-
2719
export function remainingDays(isoDate: string) {
2820
const currentDate = new Date();
2921
const targetDate = new Date(isoDate);

0 commit comments

Comments
 (0)