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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

How do I convert military hour to standard Central time hour

I extracted the hour from my date field, however, the hour shows as military time.  I am having trouble using the FORMAT to format for standard time.   This is my new column. 
Hour = HOUR([p_datetime]

This is my table.  I would like for the hour to show 6 for 18, etc.  

evester_0-1687817132944.png

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

You could try it like this.

Hour = FORMAT('Table'[p_datetime],"h AM/PM")

 

View solution in original post

2 REPLIES 2
VahidDM
Super User
Super User

Hi   

Check these posts:
https://community.fabric.microsoft.com/t5/Desktop/Seperate-Time-from-Date/m-p/308981

 

https://community.fabric.microsoft.com/t5/Desktop/Get-Time-from-DateTime-field/td-p/2572372

 

Or use TIME function: https://learn.microsoft.com/en-us/dax/time-function-dax

 

TIME(HOUR([p_datetime]),MINUTE([p_datetime]),SECOND([p_datetime]))

 

 

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

Appreciate your Kudos!! 

Badges.jpg

@Anonymous

jdbuchanan71
Super User
Super User

You could try it like this.

Hour = FORMAT('Table'[p_datetime],"h AM/PM")

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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