2

I'm trying to set up membership renewal reminder letters, and instead of including the entire date that the member joined, we'd like it to just be the year. I have a token for "latestcurrentmembership.join_date" that adds that date as "January 1, 2022." Is there a way to have the token only add "2022" to the letter?

1 Answer 1

0

It might work to use crmDate as described at https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#date, i.e.

{latestcurrentmembership.join_date|crmDate:"Year"}

However not everything listed there works everywhere in all versions so I don't know offhand if that works in your version of civi in scheduled reminders. Only one way to find out!

2
  • Thanks for the suggestion, but no luck when I tried it. I'll keep at!
    – JamesA
    Sep 22, 2022 at 18:00
  • Maybe {$latestcurrentmembership.join_date|date_format:"%Y"} ? That would however be using smarty - not sure if that works in scheduled reminders...
    – Fabian
    Oct 24, 2022 at 11:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.