Skip to content

Instantly share code, notes, and snippets.

@JeffTomlinson
Created January 23, 2019 02:01
Show Gist options
  • Save JeffTomlinson/5871b4450c342a1322a88ce7a59cd498 to your computer and use it in GitHub Desktop.
Save JeffTomlinson/5871b4450c342a1322a88ce7a59cd498 to your computer and use it in GitHub Desktop.
Drupal 6 to 8 date range migration
process:
field_destination_daterange:
plugin: iterator
source: field_source_daterange
process:
value:
plugin: format_date
from_format: 'Y-m-d\TH:i:s'
to_format: 'Y-m-d'
source: value
end_value:
plugin: format_date
from_format: 'Y-m-d\TH:i:s'
to_format: 'Y-m-d'
source: value2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment