/** * Checks if the passed in date is the same day as the instance current day. * * @param Date $dt * * @return bool */ public function isSameDay(Date $dt) { return $this->toDateString() === $dt->toDateString(); }