How to create an end date field in a hook_form_alter I've succeeded creating a simple date_popup field with the following code :

$form['date_start'] = array(
  '#type' =&gt; 'date_popup',
  '#title' =&gt; t('Start date'),
  '#default_value' =&gt; '',
  '#date_format' =&gt; 'Y-m-d',
);


Now, is there any way to directly create the "End date" field without having to create a second field declaration ? Is there any bundled widget I can use ? I've seen something about date_combo but I'm not sure to understand it well.

Thanks for help !
there is no way to do it with the standard field widgets, you have to craft your own, the examples module may help you