Hi,

I'm tryin to update a date field value on node_presave hook.
I have a condition on a custom content type, when this condition is setted to true, i check that the custom date field value is empty and if not what i want to do is to set all properties(timezone, value,date_type,timezone_db) of the date field to NULL or make them empty...
I tried something like :
unset($node->field_mydate_field['und'][0]['value']);
unset($node->field_mydate_field['und'][0]['timezone']);
unset($node->field_mydate_field['und'][0]['timezone_db']);
unset($node->field_mydate_field['und'][0]['date_type']);

but it don't works when i'm updating my nodes

Any ideas?

thanx