LLMS_Abstract_Post_Data::get_date( string $period, string $date )
Retrieve a start or end date based on the period.
Parameters Parameters
- $period
-
(string) (Required) Period [current|previous].
- $date
-
(string) (Required) The date type [start|end].
Return Return
(string) The start or end date in the format 'Y-m-d H:i:s'.
Source Source
File: includes/abstracts/llms.abstract.post.data.php
protected function get_date( $period, $date ) { return date( 'Y-m-d H:i:s', $this->dates[ $period ][ $date ] ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.31.0 | Introduced. |