2
0
Files
cal/calcom/apps/api/v1/lib/utils/stringifyISODate.ts
2024-08-09 00:39:27 +02:00

5 lines
206 B
TypeScript

export const stringifyISODate = (date: Date | undefined): string => {
return `${date?.toISOString()}`;
};
// TODO: create a function that takes an object and returns a stringified version of dates of it.