In database my date is stored in D/M/YYYY format eq:(7/1/2021)
var todayDate = (
 new Date().getDate() +
  "/" +
  (new Date().getMonth() + 1) +
  "/" +
  new Date().getFullYear()
);
 console.log(todayDate);
shows current date as 14/1/2021 when i compare to know which date is greater it shows false
console.log(todayDate > date);// date stored in database(7/1/2021)
can anyone please solve this and thanks in advance
 
    