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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Calculating the difference between two DateTimes

(0) ShareShare
ReportReport
Posted on by 12

Hi,

I want to see if the Earliest Start / Date Time of a Job queue is older than 1 day ago. How do I do this?

For example  

Todayy := CALCDATE('<CD-1D>',TODAY);

Time := Time;
 
    "Earliest Start Date/Time" := CREATEDATETIME(Todayy,Time);
    IntDifference := CURRENTDATETIME - "Earliest Start Date/Time";
    IF IntDifference > 1 THEN

This example returns a high value integer not what I am expecting. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,278 Super User 2026 Season 1 on at

    Check this link, you need to calculate duration and convert it into hours and minutes

    dynamicsuser.net/.../datetime-duration

  • ManishS Profile Picture
    86 on at

    But why do you want to check job queue days, any specific reason.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans