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
Anonymous
Not applicable

PostgreSQL database date format different

Hello everyone,

 

I have an issue.

I have a date format in my PostgreSQL database like this : YYYY-MM-DD

When I am connecting in DirectQuery Power BI to this database, my date format changes : DD-MM-YYYY 00:00:00

 

=> Can someone explain me why ?

=> How to remove the time (00:00:00) ?

 

Thank you.

 

3 REPLIES 3
amitchandak
Super User
Super User

It based on the data type and format. In this article, I have shown how to change the data type for direct query

https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-1-Time-Intell...

 

Very similar to this

Data Format.pngDatatype in new ribbion.png

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you for your answer.

 

But I still don't know why I have 00:00:00 at this end of my date.

- Is it a normal behavior ?

- How to remove them outside Power BI ? I don't want to do any transformation in Power Query.

 

@Anonymous 

 

Take a look at Data types in Power BI Desktop and try using CAST to convert data type in SQL statement.

 

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.