Answers.Body: <p>It should be <code>{if '{membership.end_date}'}</code>
  and</p>
  <pre><code>{membership.end_date|crmDate}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-28T22:47:09.477Z
Answers.Text: Note that `{if '{membership.end_date|boolean}'}`
  
  is generally better - it is more reliable - although possibly not much difference for dates
Answers.UserDisplayName: eileen
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-28T15:35:08.067Z
Answers.LastActivityDate: 2024-01-28T15:35:08.067Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>And  similarly, would it be   <code>{membership_end_date|crmDate}</code> or  <code>{{membership_end_date}|crmDate}</code>?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-28T16:38:46.533Z
Comments.Text: If you go to Find Memberships and then from the results pick one and choose print/merge document, the tokens dropdown will be in membership context and give you a list. In the dropdown it's called expiration date.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-31T12:55:14.747Z
Comments.Text: @Demerit Right, there are some manually-added old tokens across templates we need to handle.
Comments.UserDisplayName: yurg
Tags: <tokens><message-templates><smarty>
Title: Message templates token replacement: is it {if membership_end_date} or {if {membership_end_date}}?
ThreadText: # Message templates token replacement: is it {if membership_end_date} or {if {membership_end_date}}?
  
  (Asked by: username_0 on 2024-01-28)
  
  And similarly, would it be `{membership_end_date|crmDate}` or `{{membership_end_date}|crmDate}`?
  
  **Tags:** tokens, message-templates, smarty
  
  > **Comments:**
  > **username_1**: If you go to Find Memberships and then from the results pick one and choose print/merge document, the tokens dropdown will be in membership context and give you a list. In the dropdown it's called expiration date.  
  > **username_0**: @username_1 Right, there are some manually-added old tokens across templates we need to handle.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2024-01-28. Score: 5 | Accepted answer
  
  It should be `{if '{membership.end_date}'}`
  and
  
  ```
  {membership.end_date|crmDate}
  
  ```
  
  > **Comments:**
  > **username_3**: Note that `{if '{membership.end_date|boolean}'}`  is generally better - it is more reliable - although possibly not much difference for dates  
  
  ---
  
  