Tribe__Tickets__Ticket_Object::end_date( bool $as_timestamp = true )

Get the ticket’s end date


Parameters

$as_timestamp

(bool) (Optional) Flag to disable the default behavior and use DateTime object instead.

Default value: true


Top ↑

Return

(string)


Top ↑

Source

File: src/Tribe/Ticket_Object.php

		public function end_date( $as_timestamp = true ) {
			$end_date = null;

			if ( ! empty( $this->end_date ) ) {
				$end_date = $this->end_date;

				if ( ! empty( $this->end_time ) ) {
					$end_date .= ' ' . $this->end_time;
				}

				$end_date = $this->get_date( $end_date, $as_timestamp );
			}

			return $end_date;
		}

Top ↑

Changelog

Changelog
Version Description
4.2 Introduced.