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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.