Answers.Body: <p>I found (on the same instance) that the cause was a munged value for the Localization > Date Formats > Date Input Format.
  This string is used to search and replace in the Date Picker from jQuery UI.</p>
  
  <p>Not at all clear how the bad value was saved, but saving an alternate selection and then changing it back cleared up the phenomenon.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-17T19:13:21.953Z
Answers.LastActivityDate: 2017-07-17T19:13:21.953Z
Answers.UserDisplayName: ginkgoMZD
Body: <p>I've a got a local sandbox running CiviCRM 4.7.18 on Drupal.</p>
  
  <p>For any datepicker field (e.g., Contacts > New Activity), the selection is displayed with munged URLs separating the date components. For example, were I to select today's date, I'd expect to see this value in the text input:</p>
  
  <blockquote>
    <p>06/30/2017</p>
  </blockquote>
  
  <p>Instead, I get this</p>
  
  <blockquote>
    <p>06https:<a href="http://6pk.l181calh181st/http://6pk.l181calh181st/6pk.l181calh181sthttp://6pk.l181calh181st/30https:http://6pk.l181calh181st/http://6pk.l181calh181st/6pk.l181calh181sthttp://6pk.l181calh181st/2017" rel="nofollow noreferrer">http://6pk.l181calh181st/http://6pk.l181calh181st/6pk.l181calh181sthttp://6pk.l181calh181st/30https:http://6pk.l181calh181st/http://6pk.l181calh181st/6pk.l181calh181sthttp://6pk.l181calh181st/2017</a></p>
  </blockquote>
  
  <p>Note: the URL of this site is mpk.localhost. In addition to jamming in the site URL instead of separators, some character replacement is happening which might provide a clue as to what's going on:</p>
  
  <ul>
  <li>"m" is replaced by "6"</li>
  <li>"o" is replaced by 181</li>
  </ul>
  
  <p>I've tried looking for weird stuff in the date/localization settings, and I've tried switching the Drupal theme. There are no messages in the JavaScript console.</p>
  
  <p>Any ideas?</p>
  
Tags: <dates>
Title: Date picker separator characters munged
ThreadText: # Date picker separator characters munged
  
  (Asked by: username_0 on 2017-06-30)
  
  I've a got a local sandbox running CiviCRM 4.7.18 on Drupal.
  
  For any datepicker field (e.g., Contacts > New Activity), the selection is displayed with munged URLs separating the date components. For example, were I to select today's date, I'd expect to see this value in the text input:
  
  > 06/30/2017
  
  Instead, I get this
  
  > 06https:<http://6pk.l181calh181st/http://6pk.l181calh181st/6pk.l181calh181sthttp://6pk.l181calh181st/30https:http://6pk.l181calh181st/http://6pk.l181calh181st/6pk.l181calh181sthttp://6pk.l181calh181st/2017>
  
  Note: the URL of this site is mpk.localhost. In addition to jamming in the site URL instead of separators, some character replacement is happening which might provide a clue as to what's going on:
  
  * "m" is replaced by "6"
  * "o" is replaced by 181
  
  I've tried looking for weird stuff in the date/localization settings, and I've tried switching the Drupal theme. There are no messages in the JavaScript console.
  
  Any ideas?
  
  **Tags:** dates
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-07-17. Score: 1 | Accepted answer
  
  I found (on the same instance) that the cause was a munged value for the Localization > Date Formats > Date Input Format.
  This string is used to search and replace in the Date Picker from jQuery UI.
  
  Not at all clear how the bad value was saved, but saving an alternate selection and then changing it back cleared up the phenomenon.
  
  
  ---
  
  