How to save multi date and time in node programmatically? I want to save multi Date value in a node programmatically.

$node-&gt;field_event_date['und'][0]['value'] =?;
$node-&gt;field_event_date['und'][0]['value2'] =?;


getting the below value after print the form_state

[field_event_date] =&gt; Array
                        (
                            [und] =&gt; Array
                                (
                                    [0] =&gt; Array
                                        (
                                            [show_todate] =&gt; 1
                                            [value] =&gt; Array
                                                (
                                                    [date] =&gt; 07/02/2015
                                                    [time] =&gt; 10:30AM
                                                )

                                            [value2] =&gt; Array
                                                (
                                                    [date] =&gt; 07/02/2015
                                                    [time] =&gt; 12:30PM
                                                )

                                        )

                                )

                        )


Getting error 

$node-&gt;field_event_date['und'][0]['value'] = 
    $form_state['input']['line_item_fields']['field_event_date']['und'][0]['value']['date'];

$node-&gt;field_event_date['und'][0]['value2'] = $form_state['input']['line_item_fields']['field_event_date']['und'][0]['value2']['date'];


But i need both date and time. I think i need to combine date and time and convert it into time stamp to save but do not understand how to combine and convert.
If converting the two is your problem following may help you

foreach ($form_state['values']['field_event_date']['und'] as $key=&gt; $value) {
  $node-&gt;field_event_date['und'][$key]['value'] = strtotime($form_state['values']['field_event_date']['und'][$key]['value']['date'] . ' ' . $form_state['values']['field_event_date']['und'][$key]['value']['time'])
}


strtotime() should be good enough.

I am assuming you are doing node_save() some where.