Render Date Range on node template

by Brad   Last Updated December 30, 2017 16:07 PM

I'm trying to render both start and end date on a node template in Drupal 8 from the Date range field from the content type. I've tried multiple ways to no avail.

-- Only shows start day -- {{ kint(node.field_date_range.value ) }}

{% if node.field_date_range %} {{ node.field_date_range.value|date(format='l M j') }}

{% endif %}



Related Questions


How to turn fieldset to normal field for date field

Updated January 30, 2018 22:07 PM



Make date/time range end value optional

Updated April 27, 2018 11:07 AM