Created
September 25, 2023 21:08
-
-
Save moaoa/e8c4e44fb8f17bb8664f6298b515a028 to your computer and use it in GitHub Desktop.
Revisions
-
moaoa created this gist
Sep 25, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ import moment from "moment"; const formatDate = (date) => { const momntDate = moment(date); if (!momntDate.isValid()) ""; return moment(date).format("D-MM-YYYY"); };