Forum Discussion
Pawan
3 years agoFrequent Visitor
Date Time Format Help
Hi Team, Please can you help me to convert below date field into Date Time format in DAX to use in Tabular model. Input: Expected Output format:
Pawan
3 years agoFrequent Visitor
Hi tamerj1 I am getting error like Can't convert value of type text to Datetime
tamerj1
3 years agoCommunity Champion
Seems it is not recognizing the YYYY-MM-DD format. In this case am afraid that it has to be done manually by extracting the year, the month, the day using LEFT and MID functions wrapped by VALUE then using the DATE function to calculate the date out of them.
on the other hand you can use MID to extract the time wraped with CONVERT - TIME
Then add the time to date like _date + _time