modify date format to ISO standard, remove toTimeStamp method

This commit is contained in:
Alex Holliday committed 2025-01-01 17:27:12 -08:00
1 parent e7cf127fde
commit b332bed14e
5 files changed
+11 -39

No files matched your search

-6
View File
@@ -75,12 +75,6 @@ export const formatDurationSplit = (ms) => {
: { time: 0, format: "seconds" };
};
export const toTimeStamp = (date, format) => {
const dayJsDate = dayjs.utc(date, format);
const timestamp = dayJsDate.valueOf();
return timestamp;
};
export const formatDate = (date, customOptions) => {
const options = {
year: "numeric",