Programmatically get the date field value
Try this out -

$schedule_start = $form_state-&gt;getValue('field_start')-&gt;format("Y-m-d H:i:s");
$schedule_end = $form_state-&gt;getValue('field_end')-&gt;format("Y-m-d H:i:s");


Provide your own desirable format.