cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
furywknd88
Level: Power Up

The datetime string must match ISO 8601 format

Hello, 

 

I'm having issues with the following flow: 

When a new response is submitted in Microsoft Forms, create an event in Office 365 Outlook with start and end meeting time.

 

-> Basically the employee chooses in Forms the best date and time for a meeting

 

Capturar.PNG

-> But I'm struggling in Convert Time Zone in order to properly create the event in Outlook 

 

('Get_response_details')?['r74e3e959a1fc4db081e9bbe32280a111'] equals the date on Forms. 

 

Format string: 

formatDateTime(body('Get_response_details')?['r74e3e959a1fc4db081e9bbe32280a111'], 'dd/MM/yyyy HH:mm')

 

CTZ.PNG

-> After run i got the following error: 

 

Capturar.PNG

 

Thanks in advance! 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: The datetime string must match ISO 8601 format

Is the date comming in from the Form as a string?  If it is then you may need to break it apart and rearrange it to the correct formatting to use it as a DateTime string.  If its a date already then you should be able to use DateTimeFormat.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Dual Super User
Dual Super User

Re: The datetime string must match ISO 8601 format

ISO 8601 specifies that the date portion of a Date Time string is always formatted as yyyy-MM-dd.  Yours is formatted as dd/MM/yyyy.  Switch the order around and you should be fine.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
furywknd88
Level: Power Up

Re: The datetime string must match ISO 8601 format

@Pstork1I really appreciate your help.

 

However, I've switched the order to yyyy-MM-dd and I am still getting the same error.

 

Capturar.PNG

 

Capturar.PNG

 

The date: 15/10/2019 13:00 is from the selected date in Forms. 

 

Thanks in advance, 

 

Regards!

Dual Super User
Dual Super User

Re: The datetime string must match ISO 8601 format

Is the date comming in from the Form as a string?  If it is then you may need to break it apart and rearrange it to the correct formatting to use it as a DateTime string.  If its a date already then you should be able to use DateTimeFormat.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 4 members 5,532 guests
Please welcome our newest community members: