David GROSPELIER
David GROSPELIER

Reputation: 832

Liquid filter date in Logic App is not working as expected

I have a very simple map written in Liquid and executed in a Logic App. The map contains only this :

{
    "myDate": "{{ "now" }}"
}

The ouput of the map is

 {
    "myDate": "Now"
 }

According to the Liquid documentation it is the right way to generate the current datetime. I tried to put the N in uppercase but it does not work.

Maybe there is a list of supported Liquid features somewhere? I also tried to apply filters like the date filter in order to change the format of a datetime, but the map is not working as expected.

Upvotes: 1

Views: 865

Answers (1)

felixmondelo
felixmondelo

Reputation: 1474

You have to format the output as this example

{
   "Date" : "{{ "now" | Date: "MM/dd/yyyy" }}"
}

Upvotes: 1

Related Questions