twig: Simple format date and time

Task: Display formatted time from

Local stored JSON:

If you want to set the language (e. g. name of weekdays and month) and the timezone: see here

See how this works:

  • URL: see above
  • twig-template:
currentDateTime: {{datetime }}<br>
formatted currentDateTime: {{datetime| date("d.m.Y H:i") }}

In Action:

curlGET failed: Operation timed out after 5000 milliseconds with 0 bytes received