I have a column which has date, time, and timezone info like this:
Sat, 20 Aug 2016 03:50:04 CDT Sun, 17 Sep 2017 16:51:46 CEST Mon, 09 Oct 2017 06:43:27 CET Thu, 28 Sep 2017 14:05:23 IST Thu, 05 Oct 2017 08:59:01 IDT Wed, 28 Jun 2017 17:10:22 CEST Mon, 18 Sep 2017 18:32:52 GMT Sat, 27 Aug 2016 07:06:22 MEST Sat, 06 Aug 2016 13:17:09 UTC Sat, 16 Jul 2016 23:53:02 PDT
I want to normalize these all to UTC.
I can strip off the leading 5 chars, and trailing timezone string, and they cast to datetime just fine… but my question is:
Does SQL Server have any built in function where I can pass in the datetime, the source timezone string e.g.
PDT and a target timezone string e.g.
UTC and it will handle the conversion?
I am thinking of something similar to what Oracle has:
FROM_TZ(YOUR_TIMESTAMP, 'UTC') AT TIME ZONE 'America/Dawson_Creek'
I am hoping to be able to do it without having to maintain a timezone offsets table to map the string values to an offset. I also don’t want to hard-code the offsets in some big case-statement.
I am on sql server 2014, so I can’t use the new
select * from sys.time_zone_info for timezone info that comes in 2016.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!