We have code line:
$result = "{$list[ 'ga_event_start_date' ]} - {$list[ 'ga_event_end_date' ]}";
And the dates display as 'd M y' We need to remove the 'y' numeral.
Can this be done in the original line above (and still be readable by the ave. coder)?
Currently we are doing with:
$newSDate = date("d M", strtotime($list[ 'ga_event_start_date' ]));
$newEDate = date("d M", strtotime($list[ 'ga_event_end_date' ]));
$result = "{$newSDate} - {$newEDate}";
\DateTimeInterfaceor Unix time) all the way through and have a custom format function for display purposes only? You would never manipulate numbers as random strings likeFive, don't do it for dates either.