0

I am new to liquid maps and I need to add or subtract hours in liquid maps. The liquid map then I habe to use in Logic Apps.

Can anyone help me in finding the right solution?

I tried all these but nothing works.

Approch 1:

{ {% assign days = 3 | times: 86400 %} "DateCreated": "{{ 'Now' | Date: '%s' | plus: days | Date: '%Y, %m, %-d %Z' }}" }

Approch 2:

{ "DateCreated": {{'now' | date: "%s" | minus : 604800 | date: "%b %d, %Y %I:%M %p -0500" | uri_encode | replace:"+","%20"}} }

Kapil Baj
  • 1
  • 1
  • Are you using LogicApps standard or consumption? Do you get an error of any kind? – Skin Mar 27 '23 at 11:56
  • @Kapil Baj To add or subtract hours in liquid maps, you can use the `date` filter. Here is an example of how to add 2 hours to the current time: once try this ``` **{{ 'now' | date: "%Y-%m-%d %H:%M:%S" | date_add: "+2 hours" }}** ``` – vijaya Mar 28 '23 at 09:58

0 Answers0