Cake\Chronos\ChronosInterface::toDateString PHP Метод

toDateString() публичный Метод

Format the instance as date
public toDateString ( ) : string
Результат string
    public function toDateString();

Usage Example

Пример #1
0
 /**
  * Checks if the passed in date is the same day as the instance current day.
  *
  * @param ChronosInterface $dt The instance to check against.
  * @return bool
  */
 public function isSameDay(ChronosInterface $dt)
 {
     return $this->toDateString() === $dt->toDateString();
 }
ChronosInterface