1.20.x date.class.inc public BackdropDateTime::__toString()

Returns the date object as a string.

Return value

string: The date object formatted as a string.

File

includes/date.class.inc, line 28

Class

BackdropDateTime
Extends PHP DateTime class for use with Backdrop.

Code

public function __toString() {
  return $this->format(DATE_FORMAT_DATETIME) . ' ' . $this->getTimeZone()->getName();
}