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?

4
  • 1
    what format is your CSV date field? AFAIK Drupal only supports unix timestamps Commented Apr 23, 2013 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
    Commented Apr 23, 2013 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. Commented Apr 24, 2013 at 5:36
  • @AnAnD please use Edit link to provide details. Details in comments are easily overlooked.
    – Mołot
    Commented Jul 23, 2014 at 6:34

1 Answer 1

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

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

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