WC_DateTime::date
Format a date based on the offset timestamp.
Method of the class: WC_DateTime{}
No Hooks.
Returns
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 10.8.1
public function date( $format ) {
return gmdate( $format, $this->getOffsetTimestamp() );
}