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

Error In DateTime Format

I'm having an error every time that I try to save my Flow

It is the simpliest flow that exist
When In Item is created Insert a Row in SQL

every field is working great, the problem comes when I'm trying to add my DateTime Values

I got this error

EC_1_0-1599246722962.png

The values in SP are stored like this 

EC_1_1-1599246752519.png

and If a manually copy and pasted in SQL it stores like this 

EC_1_2-1599246787574.png

 

The problem is only in the flow configuration
My Time Zone is set to Mexico City (in SP) and in SQL is set to Standar ( YYYY / MM /DD )

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User II
Dual Super User II

Hi @EC_1 

 

Can you try using the expression:

 

formatDateTime(triggerOutputs()?['body/Hora_de_Limpieza'],'yyyy/MM/dd')

 

Usually the format that is retrieved from SP lists is yyyy-MM-ddThh:mm:ssZ and to convert to the target type, you can use the above expression. Note that the time/date values from SP are returned in UTC timezone. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Super User III
Super User III

@EC_1 Can you please try to use 

 

convertToUtc(<Your Variable>, 'GMT Standard Time')

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS! 

Dual Super User II
Dual Super User II

Hi @EC_1 

 

Can you try using the expression:

 

formatDateTime(triggerOutputs()?['body/Hora_de_Limpieza'],'yyyy/MM/dd')

 

Usually the format that is retrieved from SP lists is yyyy-MM-ddThh:mm:ssZ and to convert to the target type, you can use the above expression. Note that the time/date values from SP are returned in UTC timezone. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (50,984)