WC_DateTime::date_i18n()
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() WC DateTime::date i18n code WC 7.5.0
public function date_i18n( $format = 'Y-m-d' ) { return date_i18n( $format, $this->getOffsetTimestamp() ); }