Forum Discussion
Converting month name to date
- 3 years ago
So you only have the text, and no other column with a date to use?
This calculated columns would workMonth Name = SWITCH(Table[Month], "January", Format (Date(2020,1,1), “mmm”), "February", Format (Date(2020,2,1), “mmm”), //and so on for the rest of the months )You would have to adjust the year according to your need. If you are able though, it would be better if you could edit the data source so there are dates to work with. This solution is not very efficient.
So you only have the text, and no other column with a date to use?
This calculated columns would work
Month Name =
SWITCH(Table[Month],
"January", Format (Date(2020,1,1), “mmm”),
"February", Format (Date(2020,2,1), “mmm”),
//and so on for the rest of the months
)You would have to adjust the year according to your need. If you are able though, it would be better if you could edit the data source so there are dates to work with. This solution is not very efficient.
- HishamAT3 years ago
Helper II
This what i have and and it is a ( text ) data type , what i need is to convert this column to data type ( date ) and with the format of MMM (Only month name).
Should i create another culomn to convert it or what ?
Thanks
- TomasAndersson3 years ago
Solution Sage
Yes, you will need to create a new calculated column that, based on the text in "Month", returns the date you want. And then you have to format that column.
- HishamAT3 years ago
Helper II
Successfully completed... Thanks