WC_DateTime::date_i18n()publicWC 3.0.0

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

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.

WC_DateTime::date_i18n() code WC 8.7.0

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