Forum Discussion
Date conversion
- 6 years ago
In case powerbi taken it as a Datetime/time stamp.
You can use Date OR the format function
column1 = format(date, "YYYY-MM-DD")
In case it is the text you can use the left function.
https://docs.microsoft.com/en-us/dax/left-function-dax
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
Thanks.
In case powerbi taken it as a Datetime/time stamp.
You can use Date OR the format function
column1 = format(date, "YYYY-MM-DD")
In case it is the text you can use the left function.
https://docs.microsoft.com/en-us/dax/left-function-dax
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
Thanks.
- Fumes0076 years agoMicrosoft Employee
I am pulling data from an API and it is return date created in the format posted in the question (see image here https://imgur.com/a/QCiU2gl). I want to able to convert it to a simple date format yyyy-mm-dd