Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
theglamgamer
Regular Visitor

convert date text to data type date using DAX

Having issue converting this date text to data type date: 

  
Feb 3, 2021 12:00:00 EST

I tried using Date Format = DATEVALUE and 
DATEVALUE(FORMAT(Details[Plugin Modification Date],"MMM/DD/YYYY HH:MM:SS EST"))

I created a new column to test those 2 functions but get a text couldn't convert to date type error
1 ACCEPTED SOLUTION

@theglamgamer 
1.png

Column = CONVERT ( LEFT ( 'Table'[Date], 12 ), DATETIME )

 

 

Also DATEVALUE + LEFT should work

Column = DATEVALUE ( LEFT ( 'Table'[Date], 12 ) )

 

 

 

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @theglamgamer 

please try CONVERT - DATETIME. otherwise it will be complex 😅

Can you share an example? 🙂

@theglamgamer 
1.png

Column = CONVERT ( LEFT ( 'Table'[Date], 12 ), DATETIME )

 

 

Also DATEVALUE + LEFT should work

Column = DATEVALUE ( LEFT ( 'Table'[Date], 12 ) )

 

 

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.