I have a text string containing either 7 or 8 (MDDYYYY or MMDDYYYY) digits which I want to convert to a date value. I can use the Text.PadStart to convert all of the text string to MMDDYYYY, but am still having a lot of trouble using the Date.FromText function to get this in date value. I am VERY NEW to power query so please describe in baby steps.
Here is my setup now, where [Original date] column contains text strings of 7 or 8 character. With the following custom column formula, I am getting an error in each cell
= Date.FromText( Text.PadStart([Original Date],8,"0"), "MMDDYYYY")
Am I missing something from a syntax point of view? I have seen instructions where I have to break the text string into 3 columns and then recombine, but I'd rather get it all done in one step and I can't imagine that is impossible.
Here is my setup now, where [Original date] column contains text strings of 7 or 8 character. With the following custom column formula, I am getting an error in each cell
= Date.FromText( Text.PadStart([Original Date],8,"0"), "MMDDYYYY")
Am I missing something from a syntax point of view? I have seen instructions where I have to break the text string into 3 columns and then recombine, but I'd rather get it all done in one step and I can't imagine that is impossible.