November 7, 2024
A common need when displaying dates on a website is to display the start and end date of an event. If your date field is a standard Drupal datetime or daterange field, that's fairly easy. (See my post on how to get values from Drupal date fields in Twig).
If your date field is a Smart Date field and allows for recurrence, that's slightly more complicated, as it is now a multi-value field (…
Continue reading Get specific key values from multi-value field, e.g. first and last dates from recurring Smart Date field