Forum Discussion
ElliotP
Post Prodigy
9 years agoUTC to AEST
Morning, The DateTime column in my sql table is in UTC time, but I would like this column to be in the AEST (-10 or -11) timezone. I've read quite a lot through the forums and all of the solution...
- 9 years ago
You can use the table and function from my post as illustrated in this video:
MarcelBeug
Community Champion
9 years agoAnd what happened with my answer to your same question???? :smileysad:
MarcelBeug
Community Champion
9 years agoIt is always posssible to converrt between local time and UTC time, but then you are dependent on the time zone setting of your computer (which might as well be a server running on UTC).
Example query:
let
Source = Table.FromColumns({List.DateTimes(#datetime(2017,1,1,1,0,0),10,#duration(25,1,0,0))},type table[UTC = datetime]),
#"Added Custom" = Table.AddColumn(Source, "Local", each DateTime.From(DateTime.AddZone([UTC],0,0)), type datetime)
in
#"Added Custom"