Power Query M code
let
Source = YourTable,
ChangedType = Table.TransformColumnTypes(Source, {{"ColumnName", type date}}, "en-US")
in
ChangedType
Converts a text column containing dates into a proper Date type, using an explicit locale to avoid misreads.
let
Source = YourTable,
ChangedType = Table.TransformColumnTypes(Source, {{"ColumnName", type date}}, "en-US")
in
ChangedType
Generate a date table in Power Query M
Setting the locale ("en-US" for MM/DD/YYYY, "en-GB" for DD/MM/YYYY, and so on) prevents Power Query from misreading ambiguous dates.
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Convert a Text Column to Date.