User login

Migrating date field content to Drupal 8

in

All i need?
https://www.drupal.org/docs/8/api/migrate-api/migrate-process/process-plugin-substr

Yes, if configured exactly right (this is still always trial and error for me)

process:
  field_pub_date:
    plugin: iterator
    source: field_pub_date
    process:
      value:
        plugin: substr
        source: value
        start: 0
        length: 10

Not quite relevant to our problem...
https://www.advomatic.com/blog/drupal-8-migrate-from-drupal-6-with-a-custom-process-plugin

Old and of no interest?
http://drupal.stackexchange.com/questions/88066/how-to-migrate-date-fields-correctly

Too new and not of interest?

FormatDate process plugin
https://www.drupal.org/node/2820490

Searched words: 
drupal 8 date migrate drupal 8 migrate datetime field not migrated drupal 7 to drupal 8 "date" migration drupal 8 example of proccessors migration

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.