Hi @Frans_365CH ,
Do you want to convert the date time strnig value into a date time value within the collection in your app?
Based on the needs that you mentioned, I think you should convert the date time value within your app rather than in your flow. I have made a test on my side, please consider take a try with the following workaround:
Please consider take a try with the following formula (set the Items property of a Data Table control to following😞
AddColumns(
ReturnedCollection,
"DateTimeValue",
DateTimeValue(DateTimeColumn, "en-US") // DateTimeColumn represents the date time column in your SQL Table
)
Note: Within the second argument of the DateTimeValue function, please type your own local language code (e.g. "en-US", "en-GB", ...).
If you want to store above result into a new collection, please take a try with the following formula:
ClearCollect(
FinalCollection,
AddColumns(
ReturnedCollection,
"DateTimeValue",
DateTimeValue(DateTimeColumn, "en-US") // DateTimeColumn represents the date time column in your SQL Table
)
)
If there is a time zone offset between the date time value in your SQL Table and the date time value in above FinalCollection, I think the DateAdd function and TimeZoneOffset function could achieve your needs:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-dateadd-datediff#converting-from-utc
I also agree with @SeanHenderson 's thought almost, you could consider sync data from your SQL Server into a CDS Entity using Dataflows functionality directly. Then you could create an app based on the CDS Entity directly without flow.
Dataflows in PowerApps
Best regards,