date field missing when use date popup with date & time in my custom module, I have used the following code:

$form['event_date'] = array(
    '#type' =&gt; 'date_popup',
    '#title' =&gt; 'Set Date &amp; Time :',
    '#date_format' =&gt; 'd-m-y H:i',
    '#default_value' =&gt; date('d-m-y H:i'),
    '#date_year_range' =&gt; '-3:+3',
    );


but after submitting it only show time field value. also work fine when only use date('d-m-y').
Yep, I found it in $form_state['input'].

I am actually using this with Ajax. so In callback function you can get the form values from $form_state array. All form values are present in $form_state['values'] and input type values are also can be found in $form_state['input'].