Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Value of Date in sql query management different from value of date in ax table.(Filtering for the same recid on table and Sql query management ax2012)

(0) ShareShare
ReportReport
Posted on by 150

Hello all,

I am facing a strange problem.

When i filter a table record with the same rec id, on table is shows this record: for the recid = 5637320272 the field svp_dtUscita = 16/09/2021 12:53:11

pastedimage1638806242483v1.png

When i connect to SQL server management and i create a query , on the same environment database, with the same recid 5637320272 on this table, it shows the time 10:53:11.

pastedimage1638806514202v2.png

Does this happens because of different time zones? the table takes value from an external system.

Why the value of time in sql query is different from the table? I am working on ax2012

Thank you in advance

  • PaulaRystemi6 Profile Picture
    150 on at
    RE: Value of Date in sql query management different from value of date in ax table.(Filtering for the same recid on table and Sql query management ax2012)

    you're the best :)

  • Verified answer
    Martin Dráb Profile Picture
    231,788 Most Valuable Professional on at
    RE: Value of Date in sql query management different from value of date in ax table.(Filtering for the same recid on table and Sql query management ax2012)

    Do you mean seeing all values in that way? If so, change the preferred timezone to (GMT) Coordinated Universal Time.

    If you want to change the behavior just of an individual form control, you can set its Timezone preference property to NoConversion.

  • PaulaRystemi6 Profile Picture
    150 on at
    RE: Value of Date in sql query management different from value of date in ax table.(Filtering for the same recid on table and Sql query management ax2012)

    Hi Martin,

    Thanks again,

    And if i want the value of time and date, to be same as sql server ? what should i change?

    thanks :)

  • Verified answer
    Martin Dráb Profile Picture
    231,788 Most Valuable Professional on at
    RE: Value of Date in sql query management different from value of date in ax table.(Filtering for the same recid on table and Sql query management ax2012)

    There is summer time in Vienna and Amsterdam on 16th September, therefore the actual timezone is CEST (UTC+2), not CET (UTC+1).

  • PaulaRystemi6 Profile Picture
    150 on at
    RE: Value of Date in sql query management different from value of date in ax table.(Filtering for the same recid on table and Sql query management ax2012)

    Hi Martin,

    Thanks for the answer.

    The users preferred time zone is GMT(+1,Viena,Amsterdam..etc). Why is this difference of 2 hours? Maybe is the fault of the external system that this table takes value?

  • Suggested answer
    Martin Dráb Profile Picture
    231,788 Most Valuable Professional on at
    RE: Value of Date in sql query management different from value of date in ax table.(Filtering for the same recid on table and Sql query management ax2012)

    Date time values in database are in UTC, while value in GUI are displayed (typically) in user's preferred time zone.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,923 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,788 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans