WC_DateTime::__toString()publicWC 3.0.0

Output an ISO 8601 date string in local (WordPress) timezone.

Method of the class: WC_DateTime{}

No Hooks.

Return

String.

Usage

$WC_DateTime = new WC_DateTime();
$WC_DateTime->__toString();

Changelog

Since 3.0.0 Introduced.

WC_DateTime::__toString() code WC 8.7.0

public function __toString() {
	return $this->format( DATE_ATOM );
}