for a weight tracking project i want to get a date from a user in his specific format eg:"05-12-19" , and i want to format it with momentjs to the standard javascript format
This code below is what i tried and think is the nearest to the result i want:
let newDate = moment().format("05-12-19","DD-MM-YYYY");
console.log(newDate); //05-12-19
the result that i was expecting is 05-12-2019 but got something different take a look here (trying to meet stack-overflows quality standards lol)