in eng/scripts/inventory-dashboard/src/formatData.ts [453:470]
function compareDates(d1: string, d2: string): string {
// If d1 or d2 are set to the "UNABLE TO DETERMINE LATEST RELEASE DATE" string, return the other date
if (d1 === "") {
return d2;
}
else if (d2 === "") {
return d1;
}
let date1 = new Date(d1).getTime();
let date2 = new Date(d2).getTime();
// If date 1 comes after date 2
if (date1 > date2) {
return d1;
} else {
return d2;
}
}