Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
feat: admin time formatter added
Browse files Browse the repository at this point in the history
  • Loading branch information
amarnath-dev committed Mar 9, 2024
1 parent 8e1bfe3 commit 196940f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 98 deletions.
98 changes: 0 additions & 98 deletions client/src/pages/AdminPages/Rights/Rights.tsx

This file was deleted.

6 changes: 6 additions & 0 deletions client/src/utils/timeFormat.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const timeFormat = (mongoDate) => {
const date = new Date(mongoDate);
const options = { month: '2-digit', day: '2-digit', year: 'numeric' };
return date.toLocaleDateString('en-US', options);
}
export default timeFormat;

0 comments on commit 196940f

Please sign in to comment.