Set value to datetime field Datetime fields with Drupal 8 are tricky. Two actions are needed: Format the time into UTC. Format the time into datetime format. Tags Drupal8 API DateTime field