I'm working trying to convert a string data type to a date that does not contain 0's in the string of the month and day part and need to convert it into a date format yyyy-MM-dd
, anything that is a single digit will come without a zero
For example, the dates come in as
162022 it should be (01-06-2022)
or
762022 it should be (07-06-2022)
or
1262022 it should be (12-06-2022)
How can I get the proper formatting to get it into a date data type using a Derived Column?