I have made a module that display a form. One of the form elements is a datetime field.
$form['FirstDate'] = array(
'#type' => 'datetime',
'#title' => t('First date-time'),
'#id' => 'inputFechaMd',
'#required' => TRUE,
'#default_value' => '',
'#prefix' => '<div class="row"> <div class="col-md-6">',
'#suffix' => '</div>',
'#attributes' => array('style' => array('margin-bottom: 1em;'))
);
When the form is displayed It has two fields, one for date and one for time. The date field has a date picker, but the time field hasn't a time picker. I would like to add a time picker for this fields, but I don't know how to do it. Also, I would like to hide seconds and request only hour and minutes.