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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.