Adding a date time field value within a node programmatically [field_download_time] =&gt; Array
            (
                [und] =&gt; Array
                    (
                        [0] =&gt; Array
                            (
                                [value] =&gt; 2012-11-27 09:38:00
                                [timezone] =&gt; America/Phoenix
                                [timezone_db] =&gt; America/Phoenix
                                [date_type] =&gt; datetime
                            )

                    )

            )


What I see for a field_download_time is given above..
I am adding nodes programmatically so the code for following field is as given below 

 $download_node-&gt;field_download_time[]['value'] = date('m-d-Y H:i', REQUEST_TIME);//--?     


I don't get an error on running the above code but the value of current date is not displayed

But When I run the following code given below I get an error 
THE ERROR : Actually the code is such that when u go to the link it downloads a file .Basically the error is that  file is not downloaded. 


  $download_node-&gt;field_download_time['und'][]['value'] = date('m-d-Y H:i', REQUEST_TIME);//--?
[0] =&gt; Array
                            (
                                [value] =&gt; 2012-11-27 09:38:00
                                [timezone] =&gt; America/Phoenix
                                [timezone_db] =&gt; America/Phoenix
                                [date_type] =&gt; datetime
                            )


As seen above,
the error was occuring due to improper date format So when I changed the date format to  date(Y-m-d\TH:i:s, REQUEST_TIME);
the $download_node-&gt;field_download_time['und'][]['value'] did not gave any error .