A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Hi @sakuraime
1912-10-25 12:24:32.000 +10:00 << may I know 1912-10-25 12:24:32.000 is UTC time or 1912-10-25 02:24:32.000 is the UTC time ???
A time zone offset specifies the zone offset from UTC for a time or datetime value. The time zone offset can be represented as [+|-] hh:mm.
In this example, it is +10:00, which means the time zone offset is added 10 hours from the UTC time. Therefore 1912-10-25 02:24:32.000 should be the UTC time.
If you are working with SQL Server 2016 (13.x) and later,then you could use AT TIME ZONE to converts date to a specified time zone considering DST (daylight saving time) changes.
In addition, you could also use the function SWITCHOFFSET to move it from one timezone to another, but still keeping the same UTC value.
Best regards,
LiHong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Ronen Ariely