WordPress at Your Fingertips
function is not described

WC_DateTime::date_i18n() public WC 3.0.0

Return a localised date based on offset timestamp. Wrapper for date_i18n function.

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

No Hooks.

Return

String.

Usage

$WC_DateTime = new WC_DateTime();
$WC_DateTime->date_i18n( $format );
$format(string)
Date format.
Default: 'Y-m-d'

Changelog

Since 3.0.0 Introduced.

Code of WC_DateTime::date_i18n() WC 5.9.0

public function date_i18n( $format = 'Y-m-d' ) {
	return date_i18n( $format, $this->getOffsetTimestamp() );
}