Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6862909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:43:05+00:00 2026-05-27T02:43:05+00:00

Is there a way in T-SQL to Convert GMT To Central Time that compensates

  • 0

Is there a way in T-SQL to Convert GMT To Central Time that compensates for Daylight Saving.

It seems that SWITCHOFFSET only accepts a string in the format [+|-]TZH:TZM or a signed integer (of minutes) that represents the time zone offset, and is assumed to be daylight-saving aware and adjusted.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:43:06+00:00Added an answer on May 27, 2026 at 2:43 am

    It’s not easy to do, there are big issues relating to timezone conversion. I.e. what happens if you want to convert a date from last August, you’d need to know if DST was applicable when the time was recorded.

    This is fixed in the latest version by using the datetimeoffset type. This records the UTC time plus the offset in force at when the datetime was recorded. This makes it much easier to work with timezones.

    Here’s a link The death of datetime

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way that I can convert the DateTime SQL value of this:
I was wondering if there was an easy way in SQL to convert an
Is there any way to convert differential backup to SQL statements which will produce
Is there a simple way in SQL to convert a string or an array
Is there an easy way to convert Transact-SQL to MySQL? I am attempting to
Is there any way to convert the warning that MySQL is issuing about an
Is there a way to insert only date in a datetime column in sql
Is there a way in T-SQL to convert a TINYINT to VARCHAR with custom
Is there a way that I can convert the to_be_approved by method in the
Is there a way to rewrite a Transact SQL statement that uses a CASE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.