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




Programing date custom field into content type

Updated March 06, 2017 18:07 PM

How to get date field object value in Drupal 8?

Updated March 29, 2017 06:07 AM

incorrect date calculation

Updated April 21, 2017 09:07 AM