Answers.Body: <p>I don't think that this is currently possible. The time part will we stripped in <code>CRM_Utils_Date::convertToDefaultDate()</code> called here: <a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Contact/Import/Parser/Contact.php#L1909" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/master/CRM/Contact/Import/Parser/Contact.php#L1909</a> </p>
  
  <p>You could have an extension read an imported text field with a date string and set the proper datetime value for the custom field via the hook <code>hook_civicrm_custom</code> in an extension. But adding the functionality to core would most likely make more sense.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-26T03:27:36.093Z
Answers.Text: is this still the case?
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-27T07:51:51.343Z
Answers.Text: Yes, I'm not aware of anyone attempting to make changes yet.
Answers.UserDisplayName: Thomas Schüttler
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-15T14:03:22.483Z
Answers.LastActivityDate: 2018-08-15T14:03:22.483Z
Answers.UserDisplayName: Thomas Schüttler
Body: <p>Importing the date works correctly, but the time shown is always 12:00 am even though the import field is, for example  02/07/2018 11:31 am. I tried various formats like the previously mentioned 02/07/2018 11:31 am  or 03/04/2018 14:22.</p>
  
  <p>How can I import the time and the date into a CiviCRM date field. I am importing the dates into a custom date field.</p>
  
Tags: <import><timestamp>
Title: How to import time with date
ThreadText: # How to import time with date
  
  (Asked by: username_0 on 2018-08-09)
  
  Importing the date works correctly, but the time shown is always 12:00 am even though the import field is, for example 02/07/2018 11:31 am. I tried various formats like the previously mentioned 02/07/2018 11:31 am or 03/04/2018 14:22.
  
  How can I import the time and the date into a CiviCRM date field. I am importing the dates into a custom date field.
  
  **Tags:** import, timestamp
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-08-15. Score: 3
  
  I don't think that this is currently possible. The time part will we stripped in `CRM_Utils_Date::convertToDefaultDate()` called here: <https://github.com/civicrm/civicrm-core/blob/master/CRM/Contact/Import/Parser/Contact.php#L1909>
  
  You could have an extension read an imported text field with a date string and set the proper datetime value for the custom field via the hook `hook_civicrm_custom` in an extension. But adding the functionality to core would most likely make more sense.
  
  > **Comments:**
  > **username_2**: is this still the case?  
  > **username_1**: Yes, I'm not aware of anyone attempting to make changes yet.  
  
  ---
  
  