Tribe__Events__Main::getDateStringShortened( string $date )
Get the date string (shortened).
Contents
Parameters
- $date
-
(string) (Required) The date.
Return
(string) The pretty (and shortened) date.
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 ) ];
}