Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
How do I convert a field with the following date/time value to a date and time field? This is March 11, 2026 and time is 1:36 pm
2026/3/11 13:36 EST (UTC -04:00)
Solved! Go to Solution.
Hi @Rnaval
I would suggest first extracting the text before the 2nd space character (assuming timezone can be discarded), then using DateTime.ToText with a format string to convert to a datetime value.
Here is a sample query to illustrate:
let
Source = #table(
type table [DateTime Text = text],
{
{"2026/3/11 13:36 EST (UTC -04:00)"},
{"2026/4/01 09:16 EST (UTC -04:00)"},
{"2026/12/31 17:26 EST (UTC -04:00)"}
}
),
#"Add DateTime" = Table.AddColumn(
Source,
"DateTime",
each DateTime.FromText(
Text.BeforeDelimiter([DateTime Text], " ", 1),
[Format = "yyyy/M/dd HH:mm"]
),
type datetime
)
in
#"Add DateTime"
You may want to use Table.TransformColumns rather than Table.AddColumn.
Is this what you're looking for?
Hi @Rnaval
I would suggest first extracting the text before the 2nd space character (assuming timezone can be discarded), then using DateTime.ToText with a format string to convert to a datetime value.
Here is a sample query to illustrate:
let
Source = #table(
type table [DateTime Text = text],
{
{"2026/3/11 13:36 EST (UTC -04:00)"},
{"2026/4/01 09:16 EST (UTC -04:00)"},
{"2026/12/31 17:26 EST (UTC -04:00)"}
}
),
#"Add DateTime" = Table.AddColumn(
Source,
"DateTime",
each DateTime.FromText(
Text.BeforeDelimiter([DateTime Text], " ", 1),
[Format = "yyyy/M/dd HH:mm"]
),
type datetime
)
in
#"Add DateTime"
You may want to use Table.TransformColumns rather than Table.AddColumn.
Is this what you're looking for?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |