modify date format to ISO standard, remove toTimeStamp method
This commit is contained in:
1 parent
e7cf127fde
commit
b332bed14e
5 files changed
+11
-39
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user