node_submit fill start/end date field I have the following code:

            $node = new stdClass();
            $node-&gt;type = 'enterprise_event';
            node_object_prepare($node);
            $node-&gt;title = $event-&gt;title;
            $node-&gt;venue = $event-&gt;venue;


My enterprise_event content type also has a date field which is a (start_date - end_date) field, but using the devel module it shows that the field is called date.
How can I set the date->start_date, date->end_date values?

Is there something like $node->date->start_date?
The db columns for a date field's start and end are value and value2 respectively. The usual method to set them would be:

$node-&gt;field_date[$node-&gt;language][0]['value'] = $from_date;
$node-&gt;field_date[$node-&gt;language][0]['value2'] = $to_date;