cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jonillsley
New Member

Formatting DD/MM/YYYY to YYYY-MM-DDTHH:mm:ss

Hello, I am setting up a flow that parses timesheet data. The dates on these timesheets are stored by our software as string, ie. 29/06/2021. 
However, I need to use them in my flow to enter them into another system that requires ISO 8601 YYYY-MM-DDTHH:mm:ss. 

 

 

3 REPLIES 3
Mira_Ghaly
Dual Super User
Dual Super User

@jonillsley

You can use formatdatetime function. 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
jonillsley
New Member

Hi @Mira_Ghaly I have used FormatDateTime but the issue appears to be that it wants a date time string, this is just date. 
So: formatDateTime('26/01/2021','YYYY-MM-DDTHH:mm:ss')

However, it complains that the string is not in ISO 8601 format. I've tried using the format option - 

 

Spoiler
@jonillsley 
I think the issue is that the value is not a date and is a string so the other suggestion would be do a split then a concatenation to construct the date in ISO format 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

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,948)