I have 2 dates to compare in Javascript i.e. "2019-05-26" and "26-05-2019". What will be the best approach to achieve the same?
I tried below and gives me true value, but not sure if that is the right way to do it.
Date("26-05-2019") === Date("2019-05-26");
Thanks.