We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a2802 commit 2fcb417Copy full SHA for 2fcb417
src/lib/date.ts
@@ -1,6 +1,6 @@
1
export const formatDate = (date: Date) => {
2
const dateStr1 = date.toISOString().split('T')[0]
3
- const dateStr2 = date.toISOString().split('T')[1].split('.')[0]
+ const dateStr2 = date.toISOString().split('T')[1].slice(0, 5)
4
5
return `${dateStr1} ${dateStr2}`
6
}
0 commit comments