mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-03 12:16:04 +02:00
9 lines
252 B
TypeScript
9 lines
252 B
TypeScript
import { format } from "date-fns";
|
|
|
|
export const formatDateWithoutTz = (date: Date): string => {
|
|
return format(date, "yyyy-MM-dd'T'HH:mm:ss");
|
|
};
|
|
|
|
export const formatDateWithoutTime = (date: Date): string => {
|
|
return format(date, "yyyy-MM-dd");
|
|
};
|