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

Announcements

News and Announcements icon
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,505 Super User 2026 Season 1 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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 344 Super User 2026 Season 1

Last 30 days Overall leaderboard