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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.