Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Transform text to datetime

I have a ADE function which PowerBI calls that returns a couple of columns, one of which is ingestTime.  When I go to transform the data from a text value to 'DateTime' it throws an error: Expression.Error: We cannot convert the value "09/23/2020 11:05:10 ..." to type DateTimeZone.  I have confirmed that the date is formatted as such: '09/23/2020 11:05:10 PM'.  I'm not selecting DateTimeZone so I don't know why it is even throwing this error.

ADE Function (generally): Table | project Column1, Column2, format_datetime(ingestTime, 'MM/dd/yyyy h:mm:ss tt')

2 Replies