I'm working on a Druapl 8 project and I'm trying to execute a migration which serve to import content of a basic content type, the content type has a field of type Date and the associated field in my CSV source file has the format "dd-mm-yyyy", I used the 'format_date' plugin to migrate the date as bellow:
process:
field_date:
plugin: format_date
from_format: 'd-m-Y'
to_format: 'd/m/Y'
source: Date
with field_date
is the machine name of my content type date field, and Date is the field name in my csv file:
source.csv
title,Date
title 1,12-01-2017
title 2,13-03-2018
After migration the content has been created as it should but with date value as bellow:
Any help please!