Forum Discussion

roxana's avatar
roxana
Active Member
8 months ago

Webhook - Add dates

Hello - has anyone had any success on adding or ensuring webhooks, include a date on them? Basically, if you don't see it at first and you go back days/weeks later, you'd have no idea when it landed in your inbox. I wonder if there's a possibility to use liquid code maybe within the body of the email to set it up so Braze just populates "today's date" in it?  
 
Has anyone had the same dilemma and found a solution? 
 
Thanks in advance. 
Roxana

 

 

 

 
  • bob's avatar
    bob
    Specialist

    It's a late reply, but might be of use to someone.

    To output a formatted date using liquid, you'd use:

    {{ 'now' | date: '%B %d, %Y' }}

    That would get you 'February 28, 2024'.

    Importantly there wouldn't be any timezone adjustments based on where the user is - though that's very possible if you need it.


    I would ask though, what email client isn't going to show the date it was received? Is this an issue that your customers have mentioned?

    No idea what this would have to do with webhooks though. Maybe I've missed the point.