chore: split app to commons and web (squash commit)
This commit is contained in:
10
packages/hoppscotch-common/src/helpers/utils/date.ts
Normal file
10
packages/hoppscotch-common/src/helpers/utils/date.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export function shortDateTime(date: string | number | Date) {
|
||||
return new Date(date).toLocaleString("en-US", {
|
||||
year: "numeric",
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
hour: "numeric",
|
||||
minute: "numeric",
|
||||
second: "numeric",
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user