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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mj2024
Helper II
Helper II

Reformat datetime to only date

Hi everyone

I have a table coming from sql server that is a datetime.  In PowerBI I only want date not time.  How do I fix this?  The data is being displayed in a PowerBI table:

Screenshot 2024-12-17 204538.png

Thank you

1 ACCEPTED SOLUTION
Bibiano_Geraldo
Super User
Super User

Hi @mj2024 ,

In your table view, select the desired column and change the data type to date:

Bibiano_Geraldo_0-1734508243219.png

 

View solution in original post

9 REPLIES 9
skparavind_1994
Frequent Visitor

You can also try another option using the sql query 

 

SELECT CAST('Datetime column' AS Date) AS ConvertedDate from Tablename

@mj2024 Have you tried this solution.

If you found this answer helpful:

skparavind_1994_0-1734541198705.png

 

 Mark it as the solution to help others find it faster.

Thank you everyone.

I am getting an error when I try to change the type:

 

Screenshot 2024-12-18 205118.png

I do not want to import the data because that is going to make my PowerBI file too big.  I prefer the query approach.

I changed the source sql query to say yet PowerBI keeps on adding the time:

CAST(EARNINGS_DATE AS date) AS EARNINGS_DATE

Any ideas on how to fix this?

Thank you

 

skparavind_1994
Frequent Visitor

In your table view, select the desired column and change the data type to date:

skparavind_1994_0-1734526482405.png

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!

 

Bibiano_Geraldo
Super User
Super User

Hi @mj2024 ,

In your table view, select the desired column and change the data type to date:

Bibiano_Geraldo_0-1734508243219.png

 

v-achippa
Community Support
Community Support

Hi @mj2024,

Thank you for reaching out to Microsoft Fabric Community.

 

Below is the simple approach to change from date and time to only date in Power BI

  1. Open the Report page and from the Home ribbon select Transform datavachippa_3-1734506493238.png
  2. A new Power Query Editor window will open
  3. Now for the required column, beside column name there is data type, click on the data type and from there select the Date data type. It will display only the date but not the time.
    vachippa_4-1734506535173.png 

Before:

vachippa_0-1734506424100.png

After:

vachippa_1-1734506445189.png

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!

 

Thank and Regards,

Anjan Kumar Chippa

Hi @mj2024,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance?

If my response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Thank you for being a part of the Microsoft Fabric Community Forum!

 

Thanks and Regards,

Anjan Kumar Chippa

Hi @mj2024,

 

We wanted to kindly follow up to check if the solution I have provided for the issue worked? If the issue is resolved, please mark the solution as Accept as solution to help the other members of the community find it more quickly. or let us know if you need any further assistance?

Don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thank you for being a part of the Microsoft Fabric Community Forum!

 

Thanks and Regards,

Anjan Kumar Chippa

rajendraongole1
Super User
Super User

Hi @mj2024 - Go to Data View in Power BI.

Select the table containing your datetime column.

Click on the column with datetime values (e.g., YourColumnName).

In the Column Tools tab, locate the Format dropdown.

Choose the Date format (e.g., dd/mm/yyyy or yyyy-mm-dd).

This will display only the date part while keeping the underlying datetime data.

rajendraongole1_0-1734498423143.png

 

 

 

or option 2:

If you prefer to fix this at the query level:

  1. Go to Home > Transform Data to open Power Query Editor.

  2. Select the column with the datetime values.

  3. Go to the Transform tab.

  4. Click on Date > Date Only.

  5. Close and Apply changes to Power BI.

    This will transform the column to a date-only format in the Power Query Editor.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors