Forum Discussion
ElliotP
9 years agoPost Prodigy
UTC 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
9 years agoCommunity Champion
And what happened with my answer to your same question???? :smileysad:
MarcelBeug
9 years agoCommunity Champion
It 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"