Need to compare two dates and check if it is the same day? Here is how you can do it.
toDateString()
produces something like “Mon Aug 09 2023”, so we can compare the two strings to see if they are the same day.
Need to compare two dates and check if it is the same day? Here is how you can do it.
toDateString()
produces something like “Mon Aug 09 2023”, so we can compare the two strings to see if they are the same day.