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

Community site session details

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

Comparing the modified date time field of a table with a date range

(0) ShareShare
ReportReport
Posted on by 19

I have to filter a set of records from the table using modifieddatetime and using a date range in x++.

But I see that even there is data in the table select statement doesn't work.

Can anyone please let me know if I am missing anything.

This is my test code.

2364.pastedimage1681322166933v2.png

I have the same question (0)
  • Martin Dráb Profile Picture
    237,656 Most Valuable Professional on at
    RE: Comparing the modified date time field of a table with a date range

    Please review that your values of startDateTime and endDateTime contains the extected UTC values. Also, make sure that you're running your code in the right company.

    Also, which version of AX are you using?

  • Reanie Profile Picture
    19 on at
    RE: Comparing the modified date time field of a table with a date range

    Thanks Martin for replying back,

    How to confim that my startDateTime and endDateTime are utc values since they are already utcdatetime variables.Please advice

    I am running it in the correct company I checked,

    I use D365 10.0.32

  • Martin Dráb Profile Picture
    237,656 Most Valuable Professional on at
    RE: Comparing the modified date time field of a table with a date range

    You can use the debugger to see values of variables. Put a breakpoint at the line with while select, run your code with debugging and then look at variables in the Locals window.

    (This thread was moved from Dynamics AX Forum.)

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 776 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 606 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 402 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans