diff --git a/frontend/src/components/NoteCard.jsx b/frontend/src/components/NoteCard.jsx index af53af4..e0eddb8 100644 --- a/frontend/src/components/NoteCard.jsx +++ b/frontend/src/components/NoteCard.jsx @@ -1,7 +1,7 @@ import { PenSquareIcon, Trash2Icon } from "lucide-react"; import { Link, useNavigate } from "react-router-dom"; -import { formatDate } from "../lib/utils"; +import { formatDateTime } from "../lib/utils"; import api from "../lib/axios"; import toast from "react-hot-toast"; @@ -53,12 +53,13 @@ const NoteCard = ({ note, setNotes }) => { {/* Footer */}
+ Created: {new Date(note.createdAt).toLocaleString()} +
++ Last Updated: {new Date(note.updatedAt).toLocaleString()} +
+