Answers.Body: <p>We're using dates in this example (custom fields on the grant entity) - I just checked - these dates are working properly:</p>
  
  <p><a href="https://i.sstatic.net/y6Aqd.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/y6Aqd.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.sstatic.net/UcFhQ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/UcFhQ.png" alt="enter image description here"></a></p>
  
  <p>So try this: set the date field to NOW -> using the method I described here: <a href="https://civicrm.stackexchange.com/questions/24578/how-can-i-create-early-bird-fees-with-webform-civicrm">How can I create early bird fees with Webform CiviCRM?</a> -> for your Date fields; </p>
  
  <p>Let me know if that works.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-08T10:13:41.440Z
Answers.Text: Oooh, okay - I'd tried 'now' but that must have been after I made it a hidden field, so it just said 'now' in the results. Keeping it as a Date field limited to 'now' and setting it to 'private' works fine (I don't mind if logged-in users see the date field, as they'll know why it's there). Thank you!
Answers.UserDisplayName: liblogger
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-08T13:52:46.463Z
Answers.Text: If you want it hidden - then just hide it with CSS!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-07T16:30:06.347Z
Answers.LastActivityDate: 2018-05-07T16:30:06.347Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I'm trying to set up a Drupal Webform that will (among other things), automatically update a custom date field in the connected CiviCRM contact record. The date field in the webform is hidden, and I'm using Drupal Tokens to generate the date/time when the form is submitted; in the webform results I see the correctly generated date and time, but it isn't then passed to the custom date field in the contact record. (I've tried this with both date &amp; time and date being recorded in the CiviCRM custom field, and with different date tokens generated by the webform - none seem to work).</p>
  
  <p>I'm assuming that the webform is generating a date format that can't be interpreted by the custom field, but I can't see a way to match them up.</p>
  
  <p>Other custom fields filled in via the webform are being populated correctly (I haven't tested this extensively). </p>
  
  <p>I'm using Drupal 7.59 and CiviCRM 5.0.2</p>
  
Tags: <contacts><custom-fields><webform-civicrm>
Title: Insert custom date field from Drupal Webform
ThreadText: # Insert custom date field from Drupal Webform
  
  (Asked by: username_0 on 2018-05-07)
  
  I'm trying to set up a Drupal Webform that will (among other things), automatically update a custom date field in the connected CiviCRM contact record. The date field in the webform is hidden, and I'm using Drupal Tokens to generate the date/time when the form is submitted; in the webform results I see the correctly generated date and time, but it isn't then passed to the custom date field in the contact record. (I've tried this with both date & time and date being recorded in the CiviCRM custom field, and with different date tokens generated by the webform - none seem to work).
  
  I'm assuming that the webform is generating a date format that can't be interpreted by the custom field, but I can't see a way to match them up.
  
  Other custom fields filled in via the webform are being populated correctly (I haven't tested this extensively).
  
  I'm using Drupal 7.59 and CiviCRM 5.0.2
  
  **Tags:** contacts, custom-fields, webform-civicrm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-05-07. Score: 1 | Accepted answer
  
  We're using dates in this example (custom fields on the grant entity) - I just checked - these dates are working properly:
  
  [![enter image description here](https://i.sstatic.net/y6Aqd.png)](https://i.sstatic.net/y6Aqd.png)
  
  [![enter image description here](https://i.sstatic.net/UcFhQ.png)](https://i.sstatic.net/UcFhQ.png)
  
  So try this: set the date field to NOW -> using the method I described here: [How can I create early bird fees with Webform CiviCRM?](https://civicrm.stackexchange.com/questions/24578/how-can-i-create-early-bird-fees-with-webform-civicrm) -> for your Date fields;
  
  Let me know if that works.
  
  > **Comments:**
  > **username_0**: Oooh, okay - I'd tried 'now' but that must have been after I made it a hidden field, so it just said 'now' in the results. Keeping it as a Date field limited to 'now' and setting it to 'private' works fine (I don't mind if logged-in users see the date field, as they'll know why it's there). Thank you!  
  > **username_1**: If you want it hidden - then just hide it with CSS!  
  
  ---
  
  