src/Contao/View/Contao2BackendView/ActionHandler/ParentedListViewShowAllHandler.php
private function renderForDateTime(
        EnvironmentInterface $environment,
        PropertyInterface $property,
        $value,
        &$isRendered
    ) {
        $evaluation = $property->getExtra();

        if ((true === $isRendered) || !$value || !\in_array($evaluation['rgxp'], ['date', 'time', 'datim'])) {
            return $value;
        }

        $isRendered = true;

        $event = new ParseDateEvent($value, Config::get($evaluation['rgxp'] . 'Format'));
        $environment->getEventDispatcher()->dispatch(ContaoEvents::DATE_PARSE, $event);
        return $event->getResult();
    }
private function renderForDateTime(
        EnvironmentInterface $environment,
        PropertyInterface $property,
        $value,
        &$isRendered
    ) {
        $evaluation = $property->getExtra();

        if ((true === $isRendered) || !$value || !\in_array($evaluation['rgxp'], ['date', 'time', 'datim'])) {
            return $value;
        }

        $isRendered = true;

        $event = new ParseDateEvent($value, Config::get($evaluation['rgxp'] . 'Format'));
        $environment->getEventDispatcher()->dispatch(ContaoEvents::DATE_PARSE, $event);
        return $event->getResult();
    }
private function renderForDateTime ( EnvironmentInterface $ environment , PropertyInterface $ property , $ value , & $ isRendered ) { $ evaluation = $ property -> getExtra ( ) ; if ( ( true === $ isRendered ) || ! $ value || ! \ in_array ( $ evaluation [ 'rgxp' ] , [ 'date' , 'time' , 'datim' ] ) ) { return $ value ; } $ isRendered = true ; $ event = new ParseDateEvent ( $ value , Config :: get ( $ evaluation [ 'rgxp' ] . 'Format' ) ) ; $ environment -> getEventDispatcher ( ) -> dispatch ( ContaoEvents :: DATE_PARSE , $ event ) ; return $ event -> getResult ( ) ; }
Render for date time.

@param EnvironmentInterface $environment The environment.
@param PropertyInterface    $property    The property.
@param mixed                $value       The value.
@param boolean              $isRendered  Determine if is rendered.

@return mixed
Render for date time .