Forum Discussion

sathyaramesh's avatar
sathyaramesh
Advocate II
7 years ago
Solved

changing Date Format

I have the data with date format as (02.08.2018). By default it taking as Text datatype.

If i change to date format then i am getting error for whole data

How to change into Date format.

I have no problem with date like(02-08-2018) and (02/08/2018)

 

Thanks,

Ramesh

9 Replies

  • Johanno's avatar
    Johanno
    Continued Contributor

    I think your regional settings must match the format the use. But if there is no other way you could extract the date from the text using as a calculated column:

    Date format = DATE(RIGHT(Table1[Date];4);MID(Table1[Date];4;2);LEFT(Table1[Date];2))

     

    • sathyaramesh's avatar
      sathyaramesh
      Advocate II

      Now i tried this format Date = DATE(MID(Table1[Date],7,4),MID(Table1[Date],4,2),MID(Table1[Date],1,2))

      I am getting date datatype.

      Now i need to change the date format manually to this DATE. 

      Like "dd/mmm/yy"

      How to get that?

      • Johanno's avatar
        Johanno
        Continued Contributor

        Hi, you almost said it yourself. :smileyhappy: Try FORMAT(Datewiththewrongformat;"dd/mm/yy")