Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paria Shiri 36 posts 109 karma points
    Aug 24, 2023 @ 16:34
    Paria Shiri
    0

    Format list view

    I am trying to format dateTime in a list view, I tried these pipes but none has any effect. The alias is ExpiryDate and it's a date picker,

    1. {{ExpiryDate | date:'longDate' }}
    2. {{value | date:'longDate' }}
    3. {{ExpiryDate | date:'YYYY-MM-DD' }}
    4. {{value | date:'mediumDate' }}

    and some other pipes and combinations, but none working.

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Aug 24, 2023 @ 17:34
    Huw Reddick
    0

    Try

    {{ value | momentDateTimeZone:"YYYY-MM-DD" }}

  • Paria Shiri 36 posts 109 karma points
    Aug 25, 2023 @ 13:20
    Paria Shiri
    0

    Thanks for the reply, can I ask where did you find this filter?

  • Paria Shiri 36 posts 109 karma points
    Aug 25, 2023 @ 13:25
    Paria Shiri
    0

    enter image description here

    In fact I have some error.

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Aug 25, 2023 @ 14:29
    Huw Reddick
    0

    It was on another forum post.

    What exact version of Umbraco are you using and I will check it

  • Paria Shiri 36 posts 109 karma points
    Aug 25, 2023 @ 15:08
    Paria Shiri
    0

    Much appreciate it, I am using Umbraco version 10.2.1

  • Ian Campbell 6 posts 76 karma points
    Jan 16, 2024 @ 08:55
    Ian Campbell
    0

    Hi did you get to the bottom of this? We are using Umbraco 13.0.2 and have exactly the same error when using {{ value | momentDateTimeZone:"YYYY-MM-DD" }}

Please Sign in or register to post replies

Write your reply to:

Draft