function checkIfOnSameDay(startingDate, currentTimestamp) {
                        if ( startingDate.getFullYear() === currentTimestamp.getFullYear() &&
                             startingDate.getMonth() === currentTimestamp.getMonth() &&
                             startingDate.getDate() === currentTimestamp.getDate()) {
                             return true
                        } else {
                             return false
                        }
                    }
The function checks if a given starting date overlaps with a current timestamp.
@param startingDate - a Date object representing the starting date of an event
@param currentTimestamp - The current date and time, represented as a JavaScript
Date object.
@returns a boolean value (true or false) depending on whether the year, month,
and date of the startingDate parameter matchs the year, month, and date of the
currentTimestamp parameter. If they match, the function returns true, otherwise
it returns false.