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 :
Microsoft Dynamics AX (Archived)

DateTimeUtil is not working

(0) ShareShare
ReportReport
Posted on by 1,447

Hi,

I wonder why this code:

DateTimeUtil::toStr(DateTimeUtil::minValue());

does not produce minimum allowed datetime value for utcdatetime EDT. This code does not return anything except for a blank string. Why is this so? You can try this as an example:

static void Job7(Args _args)
{
;
    info(DateTimeUtil::toStr(DateTimeUtil::minValue()));
}

Thanks!

*This post is locked for comments

I have the same question (0)
  • DJRM Profile Picture
    1,447 on at
    RE: DateTimeUtil is not working

    Thanks! I checked the database in SQL Server and found out that the minimum date is 1900-01-01 00:00:00.000.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    297,423 Super User 2025 Season 2 on at
    RE: DateTimeUtil is not working

    Hi DJRM,

    The minimum value is a date which is not known by the kernel. It always shows as an empty date.

    Also the next line will not return anything:

    info(strFmt("%1",DateTimeUtil::minValue()));

    Any other date is returning a value, also the maxValue().

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Rahul Shah Profile Picture

Rahul Shah 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans