/** * Tell if current date is equal to the real date * * @return bool */ public function isToday() { return $this->format('zY') == DateTime::now()->format('zY'); }