web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to Manipulate a St...
Power Automate
Unanswered

How to Manipulate a String in date/time format

(0) ShareShare
ReportReport
Posted on by 6

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?

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at

    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

  • v-yamao-msft Profile Picture
    on at

    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#formatDateTime

     

    Best regards,

    Mabel     

       

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard