Otherwise, I would still advice to use lib but still if you want to do it by your own, not sure it will works, but you could use Date and getTime for comparison
For example to guess if a date is bigger than today (in the future)
let today: Date = new Date();
// Here I'm not sure that it will works respectively that your json date format will be supported for parsing
let date1: Date = new Date(this.raceData[0].races[0].raceDate);
let diff1: number = today.getTime() - date1.getTime();
console.log('Is date1 in the future? ' + (diff1 < 0));
I don’t remember exactly why, maybe because of the internationalization, but back then I came to the conclusion than comparing dates with time is more secure/stable…just a thought