Print True in the console depending on a Specific Date
I am trying to print True in the console when a Specific date comes. Here is my code : setInterval(() => { if (new Date() == new Date("2022-06-18T06:27:00")) { console.log("true"); } else { console.log("false"); } }, 1000); But it keeps showing False There is another way to do what I am thinking about? Note: Both… Read More Print True in the console depending on a Specific Date