cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
furywknd88
Frequent Visitor

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

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.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User
Dual Super User

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.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

@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!

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.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,574)