xxxxxxxxxx
{{ game.gameDate|date('Y-m-d\\TH:i:sP') }}
xxxxxxxxxx
{# Assuming you have a Twig datetime object named "datetime" #}
{# Using the format filter #}
{{ datetime | date('Y-m-d H:i:s') }}
{# Using the format method on the object #}
{{ datetime.format('Y-m-d H:i:s') }}