Suppose i have a string like ,
let oldDate = "30-1-2022";
let presentDate = new Date(Date.now()).toLocaleDateString("en-GB");
console.log(oldDate,presentDate)
Now my question is how can i check wich Date is the biggest Date.
Suppose i have a string like ,
let oldDate = "30-1-2022";
let presentDate = new Date(Date.now()).toLocaleDateString("en-GB");
console.log(oldDate,presentDate)
Now my question is how can i check wich Date is the biggest Date.