1

I'm trying to import few nodes using feeds CSV file. I'm able to import some of the fields but I'm unable to import CCK date fields.

I have tried feeds module with uc_feeds_product_importer.

How can I import date fields?

closed as too broad by kiamlaluno Nov 8 '17 at 9:34

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    what format is your CSV date field? AFAIK Drupal only supports unix timestamps – longboardnode Apr 23 '13 at 4:39
  • I tried with following formats on csv. 2012-04-17 00:00:00, 13 April 2013and etc, but nothing works after importing – AnAnD Apr 23 '13 at 9:43
  • check out this thread perhaps it will help drupal.org/node/722740 otherwise only other thing I can think of is try to convert your dates to Unix timestamps (something like 1353353096) which is how Drupal stores dates for nodes and user changes etc. – longboardnode Apr 24 '13 at 5:36
  • @AnAnD please use Edit link to provide details. Details in comments are easily overlooked. – Mołot Jul 23 '14 at 6:34
0

This was an issue with the feeds importer. I deleted the existing importer and created a new importer with new mappings, then all the date fields started working as normal.

The date format I use in the csv file is: 23-Apr-12

  • don't forget to clear the site cache once. – AnAnD Apr 24 '13 at 5:56
  • For me the date format "2013-08-14 10:59:58" has always worked! – Imran Khan Aug 14 '13 at 19:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.