cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Julian1
Level: Powered On

How to Manipulate a String in date/time format

Hi dear People,

 

I stuck at the following problem:

I have this Output-Data:

 

 "starttime": "2019-08-02T09:32:15.8335694Z",
"endtime": "2019-08-02T09:32:23.764065Z"

and it should be in this form in the end:

 

"starttime2": "2019-08-02 09:32:15",
"endtime2": "2019-08-02 09:32:23"


How can I achieve this?

2 REPLIES 2
Super User
Super User

Re: How to Manipulate a String in date/time format

Hi @Julian1, 2 ways: either use a Convert time zone action or add a Compose control and add a formatDateTime expression. Both of these are shown in the image below.

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

convertDateTime.png

Community Support Team
Community Support Team

Re: How to Manipulate a String in date/time format

Hi @Julian1 ,

 

Please consider using the formatDateTime function to convert the date time format.

 

The function could be configured likes below:

formatDateTime('2019-08-02T09:32:15.8335694Z','yyyy-MM-dd hh:mm:ss')

 

More details about formatDateTime function, please check the following doc:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#f...

 

Best regards,

Mabel     

   

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,384)