WordPress at Your Fingertips
function is not described

WC_DateTime::date() public WC 3.0.0

Format a date based on the offset timestamp.

{} It's a method of the class: WC_DateTime{}

No Hooks.

Return

String.

Usage

$WC_DateTime = new WC_DateTime();
$WC_DateTime->date( $format );
$format(string) (required)
Date format.

Changelog

Since 3.0.0 Introduced.

Code of WC_DateTime::date() WC 5.9.0

public function date( $format ) {
	return gmdate( $format, $this->getOffsetTimestamp() );
}