Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Liquid Code date format

Posted on by 52

i want to format date as Oct 23 | 14:23 in my web template

i tried using the formats in https://shopify.github.io/liquid/filters/date/ but most of them are not working

for example Y should return 2020 but its just rendering Y where as y is only rendering 20

Any thoughts?

  • Vinay K Gupta Profile Picture
    Vinay K Gupta 10 on at
    RE: Liquid Code date format

    Since the conduct of this area is User Local, the date is in UTC, which is 09/10/201802:00:00.  I would suggest using either https:/momentjs.com/ or http:/timeago.yarp.com, both of which are included as libraries in Portal, if you want to view in the user browser timezone.

    Liquid filters could also be used if you wanted to supply UTC with the hard-coded offset{{ result['sa.cca paiduntil'] date add hours: 10}}

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans