WordPress at Your Fingertips
function is not described

WC_DateTime::__toString() public WC 3.0.0

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

{} It's a 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.

Code of WC_DateTime::__toString() WC 5.9.0

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