web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Get datetime field value in a specific timezone when using direct sql query with Dynamics

(0) ShareShare
ReportReport
Posted on by 5

I'm using a direct sql query to fetch datetime fields from Dynamics 365. It returns the datetime values in UTC (as stored in the Sql DB). Is there a way to get the datetime field value in a specific time zone (E.g. EST or JST) when using sql query?

I have the same question (0)
  • Abdul Wahab Profile Picture
    12,119 Moderator on at
  • AbdiasM Profile Picture
    5 on at

    Thanks. I'm aware of this solution. I want to know if there's any solution that Microsoft dynamics provides out-of-the-box.

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi AbdiasM,

    After reading the instruction I can say No.

    ...

  • Suggested answer
    Yoshika Suzuki Profile Picture
    on at

    SQL is registered in UTC and displayed in the Dynamics 365 UI according to the time zone set by the user.

    It may be possible to convert the time in a SQL query.

    learn.microsoft.com/.../at-time-zone-transact-sql

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans