Date parameters

I would google working with dates in Javascript to learn more but here is something that can get you started thinking about it.

Working with dates in Javascript can be complicated so definitely read up on it.

let dateToCheck = new Date('2022-01-01')
 const dateToday = new Date();
 if(dateToday > dateToCheck){
  console.log("today is after 1/1/2022")
 }