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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SysQueryRangeUtil - with Time function ?

(0) ShareShare
ReportReport
Posted on by

Hi,

just a general question is it possible for us to add a time function to say (dayrange(30,0)) as we would like to pull back all data from a previous date Upto todays current time -1 hour.

Thanks in advance

Jordan

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,660 Most Valuable Professional on at

    Yes, you can add your own methods to SysQueryRangeUtil.

    When writing it, don't forget that datetime values in database are in UTC, not in your local time.

  • Community Member Profile Picture
    on at

    Hi,

    Thanks for that information, However upon selecting the query inside the Sales ledger can you display an example if i wanted to return the previous 30 days along with current date then a certain hour ?

    i understand the first part would be (dayrange(30,0))

  • Martin Dráb Profile Picture
    239,660 Most Valuable Professional on at

    No, there won't be two parts. You need a single function working with utcDateTime values.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dekion Profile Picture

dekion 4

#2
Virginia99 Profile Picture

Virginia99 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans