9

How do I get the current year for the Copyright © {{YEAR}} in a SendGrid Dynamic Templates WITHOUT test data?

I'm looking for something like {{ formateDate new Date YYYY }} since we want the year to update automatically so we can't rely on test data if that is possible?

Storm Parker
  • 583
  • 3
  • 7
  • 21
  • Did you manage to solve this please? – Luke Galea Apr 05 '22 at 07:10
  • I just messaged with SendGrid support. It doesn't seem like this is currently possible . Or at least the rep that I spoke to didn't know how to do it. – Collin Krawll Apr 08 '22 at 16:05
  • I was hoping that this is something which could be set like this `{{ formatDate "" "YYYY" }}`, I've raised a ticket with sendgrid. I guess until that becomes available that I'll need the value sent with the data payload posted to the template. – Matt Dec 17 '22 at 15:09

0 Answers0