WC_DateTime::date( string $format )
Format a date based on the offset timestamp.
Description Description
Parameters Parameters
- $format
-
(Required) Date format.
Return Return
(string)
Source Source
File: includes/class-wc-datetime.php
public function date( $format ) {
return gmdate( $format, $this->getOffsetTimestamp() );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |