Forum Discussion

jpt1228's avatar
jpt1228
Responsive Resident
8 years ago
Solved

Convert YYYYMM to date

Hello, I have searched all over and I see many folks have the opposite issue.   I have a date column that is YYYYMM and I need to convert it into a date the date table can recognize. When I add a c...
  • jpt1228's avatar
    jpt1228
    8 years ago

    Figured it out - Converted the YYYYMM Column to text and then added new column and used this code.

    =Date.FromText(
    Text.Range([Input Date as Sting], 0,4) & "-"  &
    Text.Range([Input Date as Sting], 4,2)
    )