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].


Top ↑

Return Return

(string) The start or end date in the format 'Y-m-d H:i:s'.


Top ↑

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 ] );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.31.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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