How can I set the default date for a date field in hook_form_alter()
.?
I tried:
$form["field_price_date"]["und"][0]['value']['#default_value'] = $curDate;
$form["field_price_date"]["und"][0]['value']['date']['#default_value'] = $curDate;
$form["field_price_date"]["und"][0]['value']['date'] = $curDate;
$form["field_price_date"]["und"][0]['value'] = $curDate;
None of the above work.