Forum Discussion

TillaSennane's avatar
TillaSennane
Active Member II
13 days ago

Have a date format in user update step

Hello,

I have a canvas in which users enter after performing a custom event (Action-based canvas). In this canvas, I have a User Update step that is updating the object of a custom attribute via the UI editor. This object is named "date" and I want the value of this object to be a date.

However, it seems that the value I'm retrieving has a string format, not a date format. 

Do you know what should I do to have this value indeed considered as a date? So that I don't need in my content to use liquid to convert this string into a date to play with it.

Thank you!

  • Hello TillaSennane  Try something like this:
     

    {{ canvas_entry_properties.${date} | date: "%B %d, %Y %I:%M %p" }}

     

    1. Go to Data Settings > Custom Attributes
    2. Search for the attribute
    3. Make sure the attribute itself has data type as "Time" in case its default set to "String"