Body: <p>We have a date field, custom, set to be dd-mm-yyyy but when we add a token for that custom field in a mailing it comes out as yyyy-mm-dd hh:mm:ss</p>
  
  <p>How do we change this</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-04T19:40:46.330Z
Comments.Text: Of course, you know the answer to this question ... a custom extension. Seems like custom field tokens are not formatting the value of the custom field, just outputting it, at least in the case of dates. I'm not convinced that is wrong.
Comments.UserDisplayName: Alan Dixon
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-26T07:22:40.177Z
Comments.Text: Only a year later! See my answer to https://civicrm.stackexchange.com/a/38686/446 and let me know if it's a solution you'd like to see here.
Comments.UserDisplayName: Noah Miller
Tags: <custom-fields><tokens><dates>
Title: How to change the date format for a mailing token for a custom date field
ThreadText: # How to change the date format for a mailing token for a custom date field
  
  (Asked by: username_0 on 2019-12-03)
  
  We have a date field, custom, set to be dd-mm-yyyy but when we add a token for that custom field in a mailing it comes out as yyyy-mm-dd hh:mm:ss
  
  How do we change this
  
  **Tags:** custom-fields, tokens, dates
  
  > **Comments:**
  > **username_1**: Of course, you know the answer to this question ... a custom extension. Seems like custom field tokens are not formatting the value of the custom field, just outputting it, at least in the case of dates. I'm not convinced that is wrong.  
  > **username_2**: Only a year later! See my answer to https://civicrm.stackexchange.com/a/38686/446 and let me know if it's a solution you'd like to see here.  
  
  ---
  
  ## 0 answers
  
  