WC_DateTime::date( string $format )

Format a date based on the offset timestamp.


Description Description


Parameters Parameters

$format

(Required) Date format.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-wc-datetime.php

	public function date( $format ) {
		return gmdate( $format, $this->getOffsetTimestamp() );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.