Forum Discussion

Hudg16's avatar
Hudg16
Helper I
4 years ago
Solved

Converting date format from direct query

I have a date format that is in a string as:

mm/dd/yyyy 00:00:00

(always is 00)

how can I parse out a new column from this just as the mm/dd/yyyy?

the data is a direct query so i cannot use power query

  • Hudg16 Oh yeah, you would need to create a calculated column or measure like:

    Column = LEFT([Date],SEARCH(" ",[Date])-1)

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Hudg16 You should be able to right-click the column header and then Change type and then Date

  • rodrigosan's avatar
    rodrigosan
    Responsive Resident

    Select column,
    In the menu above click on transform,
    Go to the Date option and click on Date Only:

     




      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        Hudg16 Oh yeah, you would need to create a calculated column or measure like:

        Column = LEFT([Date],SEARCH(" ",[Date])-1)