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) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Can't get an import of dd/mm dates.. wants dd/mm/yy.
Pages: [1]

Author Topic: Can't get an import of dd/mm dates.. wants dd/mm/yy.  (Read 1363 times)

Shefftini

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.2
  • CMS version: Drupal 6.x
  • MySQL version: 5.1.5
  • PHP version: 5.2.14
Can't get an import of dd/mm dates.. wants dd/mm/yy.
March 29, 2012, 11:08:00 am
We are trying to import birthdates without the year into our membership database.  The import form only shows date formats that include the year in some form, so we get errors when it only sees dd/mm.  We could of course do it as a text only field within but then we could not do a sort between dates.  No problem setting up the data field within CiviCRM for dd/mm.. just getting the data in from an external excel roster.

Got a work around? 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Can't get an import of dd/mm dates.. wants dd/mm/yy.
March 29, 2012, 12:48:21 pm
What I would do is select the column in Excel or OpenOffice, copy and paste it into a good text editor. Download a free programmer's editor if you don't have one.

Then do a search and replace for the "newline" character which is represented by \n in many editors. Replace that with /1900\n so that each birthday has a year, albeit the year 1900.

Then copy and paste the whole thing back into Excel or OpenOffice, into that selected column.

At least you can import them as dates then. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Can't get an import of dd/mm dates.. wants dd/mm/yy.

This forum was archived on 2017-11-26.