I am using EasyEvents as my calendar for scheduling some games.
I am using two TVs, one for start date and time and one for end
date and time (need this ability for multi-day events), so I use
the Date Formatter widget to diplay the info. All this is working
fine.
I am also having Ditto display a list of the games with each game
info in several columns and two are data and time of each game.
So I need to separate the time and the date and display them in
the two columns.
How can I do it?
I tried using two snippets to do it:
<?php
$geStart = [+geDate+];
$geStartDate = substr_replace($geStart['geDate'],'',-14,-1);
return $geStartDate;
?>
but the parser doesnot like it...
I also tried this:
<?php
$geStart = $modx->getTemplateVarOutput(array('geDate','',1));
var_dump($geStart);
$geStartDate = substr_replace($geStart['geDate'],'',-14,-1);
return $geStartDate;
?>
But I do not get a result from line 1 because it is lackin a docid,
which I do not know because it is inside Ditto.
HELP!!!