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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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