cal.pub0.org/apps/api/lib/utils/stringifyISODate.ts

5 lines
206 B
TypeScript
Raw Normal View History

2022-03-30 12:17:55 +00:00
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.