Created
January 11, 2023 14:12
-
-
Save jhaashutosh/68e6234d45bc15e4829cf2d801d3a7a9 to your computer and use it in GitHub Desktop.
This file contains 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 characters
import moment from "moment"; | |
const dateToString = (date) => { | |
const stringDate = moment(date).format("YYYY-MM-DD"); | |
return stringDate; | |
}; | |
export default dateToString; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment