Skip to main content

Notifications

Announcements

No record found.

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)

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
    PaulaRystemi6 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
    Martin Dráb 230,198 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
    PaulaRystemi6 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
    Martin Dráb 230,198 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
    PaulaRystemi6 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
    Martin Dráb 230,198 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans