Skip to main content
Contributor I
January 29, 2024
Solved

How to use days later filter with property instead of today to show message a year later?

  • January 29, 2024
  • 2 replies
  • 87 views

I want to show a date 365 days after a date i have in “Property name” (customere data).

I can only get it to work with “today”

{% today "%Y-%m-%d" as today %} {{ today|days_later:5 }}

 

But i want it to work with date in my data instead of today?

    This topic has been closed for replies.
    Best answer by Brian Turcotte

    Hi @Dan30707077!

    Here is the correct formatting:

     

    {{ format_date_string|date:'Y-m-d'|days_later:5 }}

     

    Best,

    Brian

    2 replies

    Brian Turcotte
    Klaviyo Alum
    January 30, 2024

    Hi @Dan30707077!

    I’m going to check on this internally and I’ll update the thread ASAP!

    Best,

    Brian

    Brian Turcotte
    Klaviyo Alum
    February 8, 2024

    Hi @Dan30707077!

    Here is the correct formatting:

     

    {{ format_date_string|date:'Y-m-d'|days_later:5 }}

     

    Best,

    Brian