cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ford_wilkinson
Helper I
Helper I

How to get around this error: Cannot convert the literal '2020-12-10 08:43:00.0' to the expected type 'Edm.DateTimeOffset'

Good afternoon,

 

I am banging my head against this issue.  I am getting a JSON file, which is being parsed.  One of the fields is PROJECTDATE and it is coming to me in the format of "2020-12-10 08:43:00.0".  I am then trying to push this to a Dynamics system using OData and when I use the format "2021-09-22T18:41:05.1899702Z", it works great.  

Now I'm trying to figure out how on Earth I can take that parsed value and get it into the right format.  I probably just need to step away and sleep on it but figured one of the guru's here might have a solution!!!  Any help would be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @ford_wilkinson 

 

You could use the below format

 

formatDateTime('2020-12-10 08:43:00.0','yyyy-MM-ddThh:mm:ssZ')



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

1 REPLY 1
abm
Super User
Super User

Hi @ford_wilkinson 

 

You could use the below format

 

formatDateTime('2020-12-10 08:43:00.0','yyyy-MM-ddThh:mm:ssZ')



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,605)