Convert Date to DDMMYYYY from any other formats
var date = new Date("2019/12/27"),
yr = date.getFullYear(),
month = date.getMonth() < 10 ? '0' + date.getMonth() : date.getMonth(),
day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate(),
newDate = yr + '-' + month + '-' + day;
I tried like this but it is not accepting '27/12/2019'