Skip to main content

Documentation Index

Fetch the complete documentation index at: https://adro.codes/llms.txt

Use this file to discover all available pages before exploring further.

function datesAreTheSameDay(date1: Date, date2: Date): boolean {
  return date1.toDateString() === date2.toDateString();
}
toDateString() produces something like “Mon Aug 09 2023”, so we can compare the two strings to see if they are the same day.
This doesn’t check if the dates are the same, only that it is the same day, month & year