Azure API Management - Datatime conversion issues

Vivek Komarla Bhaskar 956 Reputation points
2022-12-13T13:22:14.527+00:00

The API is performing an automatic format conversion, changing the expected format in input message (2022-07-12T06:00:00+00:00) to (12/7/2022 6:00:00 AM).

270117-screenshot-2022-12-13-at-12051-pm.png

270078-screenshot-2022-12-13-at-11946-pm.png

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,425 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,523 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sonny Gillissen 3,751 Reputation points Volunteer Moderator
    2022-12-13T19:58:50.683+00:00

    Hi @Vivek Komarla Bhaskar ,

    Thanks for reaching out!

    From our previous contact I know you've been using liquid templates, so I assume you're still doing so.
    I've tested it in my lab environment and I saw the same behaviour on my end.

    What you could try is appending the code below to your liquid date tags:

    | Date: "o"  
    

    You're code will look somewhat like this:

    270251-image.png

    Then your dates are presented in the desired format, be it with miliseconds.
    Within the possible formats this was the closest I could find.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.