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
Ed1100
Regular Visitor

Dates in PowerQuery

Good day,

 

I am having an issue where the dates from a raw data file are showing correctly as MM/DD/YYYY HH:MM (military time). When I add the data file into PowerQuery, it changes it automatically to DD/MM/YYYY HH:MM. Is there a way to default the data input to a specific format?image (4).pngimage (3).png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Ed1100 

Did you set it as the steps i followed before, the locale shoud be set as US. Can you provide the steps you operated?

 

Best Regards!

Yolo Zhu

View solution in original post

4 REPLIES 4
Ed1100
Regular Visitor

When I bring the data in, it comes in as a Text.

 

Ed1100_0-1715086612014.png

 

After I Promoted Headers, I try to Changed Type to Date/Time, it errors out and I cannot figure out why (see error on bottom).

 

Ed1100_2-1715086740194.png

 

 

Anonymous
Not applicable

Hi @Ed1100 

Did you set it as the steps i followed before, the locale shoud be set as US. Can you provide the steps you operated?

 

Best Regards!

Yolo Zhu

Hi Yolo Zhu, I was able to correct it by completed the steps with the Change Type with Locale. Not sure why it defaulted back. Thanks for your support!

 

Anonymous
Not applicable

Hi @Ed1100 

If your data format is "MM/DD/YYYY HH:MM", You can select the date column, then select change type->use locale.

vxinruzhumsft_0-1715048851096.png

Then select the data type to 'Date/Time', and select the locale to "US".

vxinruzhumsft_1-1715048912013.png

Output

vxinruzhumsft_2-1715048966187.png

And you can refer to the following link.

Change Type Using Locale with Power Query • My Online Training Hub

 

Best Regards!

Yolo Zhu

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

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 Kudoed Authors