mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-18 05:09:23 +00:00
add cards table and pagination
This commit is contained in:
5
src/utils/date/format-date.ts
Normal file
5
src/utils/date/format-date.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export function formatDate(date: string | undefined) {
|
||||
if (!date) return ''
|
||||
|
||||
return new Date(date).toLocaleDateString('ru-RU')
|
||||
}
|
||||
Reference in New Issue
Block a user