---js { layout: "page.njk", getLocalized: function(item) { if (typeof item === "string") return item; return item[this.ctx.lang]; }, toDate: function(dateStr) { return new Date(dateStr); } } --- {{ content | safe }} {% for date, events in program %}

{{ toDate(date).toLocaleDateString(lang, { weekday: 'long', month: 'short', day: 'numeric' }) }}

{% endfor %} {% css %} {% include "program.css" %} {% endcss %}