Forum Discussion
Anonymous
5 years agoNot applicable
DateTime Conversion
Hello All, I am getting data from an API using powerquery. Result is a JSON file which we are expanding into columns. One of the column is CreateDate which is of format "yyyy-MM-DDTHH:MM:SS.ms" ...
- 5 years ago
Anonymous , try if you can use DateTime.FromText in new column.
This should take this time as per example in
https://docs.microsoft.com/en-us/powerquery-m/datetime-fromtext
else replace T using Text.Replace
example
DateTime.FromText (Text.Replace([DT], "T", " "))
amitchandak
Super User
5 years agoAnonymous , try if you can use DateTime.FromText in new column.
This should take this time as per example in
https://docs.microsoft.com/en-us/powerquery-m/datetime-fromtext
else replace T using Text.Replace
example
DateTime.FromText (Text.Replace([DT], "T", " "))