WC_DateTime::date()
Format a date based on the offset timestamp.
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. |
WC_DateTime::date() WC DateTime::date code WC 8.7.0
public function date( $format ) { return gmdate( $format, $this->getOffsetTimestamp() ); }