How do I set the default value of a datetime form element?
use Drupal\Core\Datetime\DrupalDateTime;

and in form 

$form['start_date'] = array(
  '#type' =&gt; 'datetime',
  '#title' =&gt; t('Start Date'),
  '#default_value' =&gt; DrupalDateTime::createFromTimestamp(time()),
);