The Date Copy module allows you to import date data into CCK nodes. Currently you can convert Event nodes to CCK nodes or import date data from an iCal feed.

Importing from Event Nodes

If you current have date information in Event nodes and want to get the event dates into CCK Date fields instead, you can do this using the Date Copy module included with the Date module.

  1. First, create the content type you want to import your events into and make sure the content type has a CCK date field and a field to hold the event description (either a body or a text field). You can create a new content type for this purpose or add a CCK date field to the current event type, depending on whether you want to create new nodes and nids or use the current ones.
  2. Make sure you set up the CCK date field to have both a 'From Date' and a 'To Date'. If your events have event-specific timezones, make sure the CCK date field is set up to use the date's timezone.
  3. Enable the Date Tools module
  4. Go to Admin >> Content management >> Date Import/Export >> Import >> Events and select 'Events' as the content type to import from and your new content type as the type to import to (/admin/content/date/tools/import/event). Only content types that have date fields will appear in the list of available content types.
  5. If you have added the new date fields to the current content type, be sure to select the option to NOT delete the old node after the import. If you have created a new content type, you will probably want to delete the old nodes.
  6. You can select the number of items to import and the starting nid (import will be done in ascending nid order). Use that to import a single node as a test to be sure the results are what you want.
  7. Once your nodes seem to be importing correctly, go ahead and import more of them. You may want to do them in batches to keep the server from timing out.

Importing From an iCal Feed

  1. First, create the content type you want to import your iCal events into and make sure the content type has a CCK date field and a field to hold the event description (either a body or a text field). You may also want to create CCK fields to hold the location, url, and iCal uid. Those can be text fields or the url can be a CCK link field.
  2. Make sure you set up the CCK date field to have both a 'From Date' and a 'To Date'.
  3. Go to Admin >> Content management >> Date Import/Export >> Import >> iCal and input a url for the source iCal file to import from and your new content type as the type to import to. Only content types that have date fields will appear in the list of available content types.
  4. Select the fields in your new content type that will hold the date, description, location, url, and uid.
  5. Select the categories, author, and publishing options for the imported dates.
  6. Submit the form.

Comments

JeniferTucker’s picture

It seems this is no longer available in Drupal 6. I too was following this example following upgrade from Drupal 5 to Drupal 6.

Hope this will be useful to others to come across this posting.

Source:
http://drupal.org/node/459828

------------------

KarenS posted on May 11, 2009 at 9:38pm

That has been incorporated into the Date Tools module, which does additional things.

------------------

Date Tools (on searching for this) forms part of the Date module - http://drupal.org/project/date

Download and enable "Date Tools" and "Date Repeat API" if you want to use the date wizard to import.

Administer › Content management › Date Tools

www.example.com/admin/content/date/tools/import