/** * Getter * @param Date $otherDate * @return bool */ public function isGreaterThan(Date $otherDate) { return $this->__toString() > $otherDate->__toString(); }
/** * Formats a date * * @param Date $input * * @return string */ public function formatDate(Date $input) { return $input->format($this->getCurrentFormat()); }