These are chat archives for FreeCodeCamp/Help
get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
Dateapi? I'm pretty sure you can use JS's
Array.prototype.sortand compare the values of each by first converting them using something along the lines of:
let aDate = new Date('2018-11-30T15:20:40Z')
if(upcomingDate > new Date())
ifexpression, but when you instantiate it without any constructor arguments it just creates a date with the "now" - or current - time.
new Date(1561453200) > Sun Jan 18 1970 18:44:13 GMT-0700 (Mountain Standard Time) new Date(Date.now()) > Sat Jan 19 2019 10:55:00 GMT-0700 (Mountain Standard Time) Date.now() > 1547920508666