I want to determine the if daylight saving time is active or not, but in a region different to where my server is located.
My problem is I want to check the dayligh
Here’s a crude IsDST for SQL Server…
CAST((DATEPART(month, DATEADD(week, -1, )) + 2) % 13 / 5 AS bit) AS IsDST
Yields 0 for Standard Time Nov 8 – Mar 7, and 1 for Daylight Time Mar 8 – Nov 7.