Did you find an example that does not work using this sample?
declare @example datetime = '2022-08-19 05:30:44'
select @example at time zone 'UTC' at time zone 'AUS Eastern Standard Time'
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I have a dataset of around 3 years and I need to do some calculations.
The issue is that the dates are in UTC format but I need to convert them into AUS Eastern Standard Time
I tried AT TIME ZONE but that is not working for me since it only takes into account the current date (I think)
I need to apply this to the whole dataset making sure it converts the time to AEST and takes into account daylight savings when they are applicable.
Can someone please suggest a solution.
Thanks,
Did you find an example that does not work using this sample?
declare @example datetime = '2022-08-19 05:30:44'
select @example at time zone 'UTC' at time zone 'AUS Eastern Standard Time'