SyntaxFix
Write A Post
Hire A Developer
Questions
const dateFormat = 'MM-DD-YYYY'; const currentDateStringType = moment(new Date()).format(dateFormat); const currentDate = moment(new Date() ,dateFormat); // use this
moment.suppressDeprecationWarnings = true;