I D8 installed the module Optional End Date in order to add an optional end date within a date field.
When I had a single date field value I could get the value by using:
$datum_deelname = $node->get('field_normaldate')->value;
If I change this in the new field name:
$datum_deelname = $node->get('field_optional_enddate')->value;
I get back NULL.
How should I get this value?