Forum Discussion
Converting Date Format
- 6 years ago
I figured this out. I had to convert at the query level, not at the design level.
If it is detected as date then
new = format([Table]date, "yy-mm-dd")
If it is text then
new = mid([Table]date,3,8)
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
- cdn4lf6 years agoFrequent Visitor
Is there a way to do this without needing to add a new column? I was hoping for a workaround that would allow me to convert to date format.
If I have to resort to coding, I can, but this affects multiple columns across a large number of tables.
Thank you,
- cdn4lf6 years agoFrequent Visitor
I figured this out. I had to convert at the query level, not at the design level.