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

4 lines
201 B
TypeScript
Raw Normal View History

export const stringifyISODate = (date: Date|undefined): string => {
return `${date?.toISOString()}`
2022-03-26 04:28:53 +00:00
}
// TODO: create a function that takes an object and returns a stringified version of dates of it.