1

I'm using Calendarize and I'm not sure how I can grab the 'To' time?

https://plugins.craftcms.com/calendarize

 {% set monthStart = now|date_modify('-1 day') %}
 {% set monthEnd = '2022-01-31' %}
 {% set occurrences = craft.calendarize.between(monthStart, monthEnd, { 
 section: ['events'] }) %}
 {% for occurrence in occurrences %}
<h2>{{ occurrence.title }} - {{ occurrence.next|date('D j M') }}</h2>
{{ occurrence.description }}

//START TIME
{{ occurrence.next|date('H:ia') }}-
//TO TIME???
{{ occurrence.next|date('H:ia') }} occurrence.endTime.format('H:ia')}}

enter image description here

{% endfor %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.