I have a bunch of values from a .sql export that are in the datetime format (same format that date fields take in the DB). I'm creating nodes using these date values. How can I insert these values into the date field?
$node->field_data_field_date['und']['field_date_value'] = $datetime_value;
but it didn't seem to work. Any ideas? Thanks!