Tribe__Events__Main::getDateStringShortened( string $date )

Get the date string (shortened).


Parameters

$date

(string) (Required) The date.


Top ↑

Return

(string) The pretty (and shortened) date.


Top ↑

Source

File: src/Tribe/Main.php

		public function getDateStringShortened( $date ) {
			$monthNames = $this->monthNames();
			$dateParts  = explode( '-', $date );
			$timestamp  = mktime( 0, 0, 0, $dateParts[1], 1, $dateParts[0] );

			return $monthNames[ date( 'F', $timestamp ) ];
		}