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
Om2023
New Member

Convert Date_Time format to DDMMYYYYHHMMSS numeric format.

Hello Everyone,

 

Can someone help with the below problem?

 

I want to convert the Date_Time column into the "DDMMYYYYHHMMSS" numeric format using Power BI Query Editor only.

 

 

DATE_TIMEResulted column
01-Jan-24 10:17:41 PM1012024221741
01-Jan-24 10:22:34 PM1012024222234
01-Jan-24 10:25:12 PM1012024222512
01-Jan-24 10:28:30 PM1012024222830
01-Jan-24 10:30:56 PM1012024223056
01-Jan-24 10:33:41 PM1012024223341

 

 

Thanks in Advance!

1 ACCEPTED SOLUTION
ZhangKun
Super User
Super User

add a custom column and use following code.

DateTime.ToText(DateTime.From([DATE_TIME], "en-us"), [Format = "ddMMyyyyHHmmss"])

If you are using an English system, you can remove "en-us". For example, the following code.

DateTime.ToText(DateTime.From([DATE_TIME]), [Format = "ddMMyyyyHHmmss"])

 

View solution in original post

2 REPLIES 2
ZhangKun
Super User
Super User

add a custom column and use following code.

DateTime.ToText(DateTime.From([DATE_TIME], "en-us"), [Format = "ddMMyyyyHHmmss"])

If you are using an English system, you can remove "en-us". For example, the following code.

DateTime.ToText(DateTime.From([DATE_TIME]), [Format = "ddMMyyyyHHmmss"])

 

Thanks a lot! the concern has been solved.

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.