twig: Format date and time

Task: Display all data from http://atlantic.airtime.pro/api/week-info and display the timestamp human readable.
See how this works:
  1. Template:
    The program:<br>
    {% for key, val in _parent %}
    {% if val is iterable %}
    {{key}}
    <ul>
    {% for i in val %}
    <li><b> {{i.name}} (id: {{i.id}})</b>: {{i.starts | date("d.m.Y H:i") }} - {{i.ends| date("d.m.Y H:i") }}</li>
    {% endfor %}
    </ul>
    <hr>
    {% endif %}
    {% endfor %}
    
    Remember ID of this Template, e.g. TEMPLATE_ID
  2. Shortcode:
    [jsoncontentimporterpro url=http://atlantic.airtime.pro/api/week-info parser=twig id=TEMPLATE_ID]

In Action:
The program:
monday
  • AtlanticRadio.IE - Test (id: 302): 15.01.2018 02:00 - 15.01.2018 14:00
  • AtlanticRadio.IE - Test (id: 303): 15.01.2018 14:00 - 16.01.2018 02:00

tuesday
  • AtlanticRadio.IE - Test (id: 304): 16.01.2018 02:00 - 16.01.2018 14:00
  • AtlanticRadio.IE - Test (id: 305): 16.01.2018 14:00 - 17.01.2018 02:00

wednesday
  • AtlanticRadio.IE - Test (id: 306): 17.01.2018 02:00 - 17.01.2018 12:30
  • Dans Test Show (id: 310): 17.01.2018 12:30 - 17.01.2018 13:30
  • AtlanticRadio.IE - Test (id: 315): 17.01.2018 13:30 - 18.01.2018 02:00

thursday
  • AtlanticRadio.IE - Test (id: 316): 18.01.2018 02:00 - 18.01.2018 14:00
  • AtlanticRadio.IE - Test (id: 317): 18.01.2018 14:00 - 19.01.2018 02:00

friday
  • AtlanticRadio.IE - Test (id: 318): 19.01.2018 02:00 - 19.01.2018 14:00
  • AtlanticRadio.IE - Test (id: 319): 19.01.2018 14:00 - 20.01.2018 02:00

saturday
  • AtlanticRadio.IE - Test (id: 320): 20.01.2018 02:00 - 20.01.2018 14:00
  • Live From West Cork (id: 323): 20.01.2018 14:00 - 20.01.2018 14:05
  • AtlanticRadio.IE - Music Mix (id: 325): 20.01.2018 14:05 - 20.01.2018 20:00
  • Live From West Cork (id: 324): 20.01.2018 20:00 - 20.01.2018 23:00

sunday

nextmonday

nexttuesday

nextwednesday

nextthursday

nextfriday

nextsaturday

nextsunday