Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Job Queue Dispatcher: result of FORMAT function with DateTime value returns different time

Posted on by 9
Good day,
 
We are using Business Central 14 on-prem, and I’ve encountered an unusual issue with the FORMAT function in the Job Queue Dispatcher. The formatted value of a DateTime variable differs by several hours from its original value.
 
Original DateTime value: 4:59 PM
Result value of FORMAT funciton: 10:29 PM
Discrepancy: 5.5 hours
 

 

 

 

 

 

 

 

 

 

Could you please advise if I might be overlooking an important parameter in the FORMAT function or any other potential cause for this discrepancy?

Thank you in advance for your help!

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 4,615 on at
    Job Queue Dispatcher: result of FORMAT function with DateTime value returns different time
  • Serdiuk Profile Picture
    Serdiuk 9 on at
    Job Queue Dispatcher: result of FORMAT function with DateTime value returns different time
    Hi Khushbu,
     
    Thank you for checking. Actually in some cases I receive correct values as well. I think this is somehow connected with the Job Queue Task Scheduler.
     
    Do you know by a chance if I can report this issue directly to Microsoft and how to do it?
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 4,615 on at
    Job Queue Dispatcher: result of FORMAT function with DateTime value returns different time
    Suggestion: Set format for the datetime.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 4,615 on at
    Job Queue Dispatcher: result of FORMAT function with DateTime value returns different time
    Hi, I have run the same, and below is the output. I didn't see any discrepancies in the time.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans