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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Calendar

hello everyone i'm actually working on power bi and i'm having this issu.

i have this kind of timestamp date :

20170701

20180708

20190609

 

please how can i convert it to a date time format ? 

thank you 

1 ACCEPTED SOLUTION

Hi @Anonymous 

Try Triming it first.


image.png

Regards,
Mariusz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

In Query Editor you can change the Data Type of the column like below, as long as your current format is YYYYMMDD
image.png
Regards,
Mariusz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

here is the error that i'm getting 

 

DataFormat.Error: We couldn't convert to Date.
Details:
20180522

Hi @Anonymous 

Try Triming it first.


image.png

Regards,
Mariusz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

it works ! thank you a lot for your help
Anonymous
Not applicable

HI @Mariusz  i did it, but all that i have is a column sur "Error" so i was wondering if there is a formula to get ta column in date time format

ps: i'm a begginer in power Bi Smiley Very Happy

 

thank u for ur answer tho

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.