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
kingkike
Frequent Visitor

Display Date

Hi,

I have the time in this format 14/10/2012 5:00:00 +02:00, but I would like to show this 14/10/2012 7:00:00, can you help me?

Thank´s a lot

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @kingkike 

 

if this is a text string, you can do that with some Text.Split and DateTime.From and Duration.From. Here a practical example

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjTRNzTQNzIwNFIwtTIwACIFbQMjIKUUGwsA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each  DateTime.From(Text.Split([Column1],"+"){0}) + Duration.From(Text.Split([Column1],"+"){1}))
in
    #"Added Custom"

 

but I think that your data is a DateTimeZone-format, meaning +2 is CET-time zone and with this data adding +2 hours makes no logic, but then it would make sense to change the zone. Here the above example applying SwitchZone

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjTRNzTQNzIwNFIwtTIwACIFbQMjIKUUGwsA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each  DateTime.From(Text.Split([Column1],"+"){0}) + Duration.From(Text.Split([Column1],"+"){1})),
    #"Added Custom1" = Table.AddColumn(#"Added Custom", "Custom.1", each DateTimeZone.SwitchZone(DateTimeZone.From([Column1]),4))
in
    #"Added Custom1"

 

Copy paste this code to the advanced editor in a new blank query to see how the solution works.


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

2 REPLIES 2
Jimmy801
Community Champion
Community Champion

Hello @kingkike 

 

if this is a text string, you can do that with some Text.Split and DateTime.From and Duration.From. Here a practical example

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjTRNzTQNzIwNFIwtTIwACIFbQMjIKUUGwsA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each  DateTime.From(Text.Split([Column1],"+"){0}) + Duration.From(Text.Split([Column1],"+"){1}))
in
    #"Added Custom"

 

but I think that your data is a DateTimeZone-format, meaning +2 is CET-time zone and with this data adding +2 hours makes no logic, but then it would make sense to change the zone. Here the above example applying SwitchZone

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjTRNzTQNzIwNFIwtTIwACIFbQMjIKUUGwsA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each  DateTime.From(Text.Split([Column1],"+"){0}) + Duration.From(Text.Split([Column1],"+"){1})),
    #"Added Custom1" = Table.AddColumn(#"Added Custom", "Custom.1", each DateTimeZone.SwitchZone(DateTimeZone.From([Column1]),4))
in
    #"Added Custom1"

 

Copy paste this code to the advanced editor in a new blank query to see how the solution works.


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

thank´s so much Jimmy

Best regards

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.

Top Solution Authors