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

Import changing date

I'm importing data from a website. The date there is in m/d/yyyy. After I pull it in the date becomes m/d/dddd, time, and timezone. When I re-format the time to m/d/yyyy the date then shows up as the day before.  When I format for just date/time, it converts to 5 pm the previous day. Any ideas why this is happening and how do I fix it?

Date upon importDate upon import

Formatted for just the dateFormatted for just the date

Formatted for just date/timeFormatted for just date/time

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Your datetime is probably coming in UTC, and when it changed to Date in your locale the timezone difference is causing it to change to the previous day.  You can first leave the date field as text and extract text before delimiter at the space before you convert to date.  Not totally sure, but that is likely the issue.

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

This is because the data you have import into power bi is Date/Time/TimeZone type, if you change the data type directly, it will transform with your loacl timezone automatically.

So just use this way to change the data type as below:

Selected this column->Transform->Date->Date Only

 

4.JPG

 

Result:

This is change data type directly:

Change data type directlyChange data type directly

 

This is use above way to change data type

Use above way to change data typeUse above way to change data type

 

Regards,

Lin

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

Your datetime is probably coming in UTC, and when it changed to Date in your locale the timezone difference is causing it to change to the previous day.  You can first leave the date field as text and extract text before delimiter at the space before you convert to date.  Not totally sure, but that is likely the issue.

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

HI @Anonymous 

On your question

"Any ideas why this is happening and how do I fix it?"

Why is marked in black pen and

How is marked in red pen

pranit828_0-1597955928339.png

 

 

 

Anonymous
Not applicable

I updated those settings, deleted the query, then re-imported and the problem persists.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.