CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Recognizing date formats on import?
Pages: [1]

Author Topic: Recognizing date formats on import?  (Read 2731 times)

awarnock

  • Guest
Recognizing date formats on import?
February 20, 2009, 02:46:17 pm
I wonder if it might be possible, in an upcoming release, to make the import algorithms a little more robust when it comes to handling dates.  It seems to me that it ought to be possible to have the import code recognize a number of common date formats automatically, rather than having to select one on the import page.  I know there are perl modules which do this - I assume the same is probably available for PHP.

The issue is that I'm in the process of importing 15,000+ contacts with some rather sparsely-populated date fields.  Many of the values in the date fields were entered manually and, as a result, occur in a variety of formats - common formats, but not uniform.  Since the import process takes so long - I can only get about 750 or so before it times out - correcting one or two in each batch slows things down enormously.  It would improve the usability of import a lot if the date handling could be a little more forgiving.

Thanks.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Recognizing date formats on import?
February 20, 2009, 05:33:00 pm

Would be great for this to come in as a community contribution. If you need help finding the right code location, contact us on IRC (http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Recognizing date formats on import?
March 18, 2009, 05:50:24 am
Hi,

In general, the format of the various fields should be more permisive IMO (eg. M, Male, Mr should all be valid for the gender).

As for the date, we will always have the month vs day issue: 09/11/2001 is the 9th of November 2001 on about anywhere else than in the US. Can't imagine how the computer could decide that it should be the 11th of September 2001.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Recognizing date formats on import?
March 19, 2009, 10:49:25 am
Quote
09/11/2001 is the 9th of November 2001 on about anywhere else than in the US. Can't imagine how the computer could decide that it should be the 11th of September 2001.
presumably because the algorithmy thingmy would be look at a group of date entries in the import and it would be unusual for none of them to be over the 11th of something, therefore confirming that the import should either be dd/mm or mm/dd
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Recognizing date formats on import?

This forum was archived on 2017-11-26.