cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Manc_Gurl
Resolver I
Resolver I

Convert a string to ISO formatted date/time

I am capturing a date and time string in my flow which is from a text field in the format of dd/mm/yy HH:MM, e.g. 08/04/2022 09:00.  How can I format that into ISO 8601 standard, I tried searching the forums but can't find anything quite the same as what I need. Ideally I'd like to write this data to a Sharepoint date/time field

1 ACCEPTED SOLUTION

Accepted Solutions

image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

3 REPLIES 3
tom_riha
Super User
Super User

Hello @Manc_Gurl ,

you can use the parseDateTime(...) expression to format any date into ISO date.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]
Manc_Gurl
Resolver I
Resolver I

@tom_riha that doesn't seem to work because it's a string.

InvalidTemplate. Unable to process template language expressions in action 'Compose_3' inputs at line '0' and column '0': 'In function 'parseDateTime', the value provided for date time string '08/04/2022 09:00' was not valid. The datetime string must match ISO 8601 format.'.

image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,986)