Reorganize duplicated tailwind code and formatting
This commit is contained in:
8
src/utils/getFormatedDate.js
Normal file
8
src/utils/getFormatedDate.js
Normal file
@ -0,0 +1,8 @@
|
||||
export const getFormattedDate = (date) =>
|
||||
date
|
||||
? new Date(date).toLocaleDateString("en-us", {
|
||||
year: "numeric",
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
})
|
||||
: "";
|
Reference in New Issue
Block a user