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 :
Finance | Project Operations, Human Resources, ...
Unanswered

How to read date while debugging ?

(0) ShareShare
ReportReport
Posted on by 596
Hi all,
 
while debugging, when it is a date variable, how to easily /read/ what is the /humanized/ date rather than system like this :
 
Also may I know why, while as the picture suggested I have a date, but it is failed to check that my data (this date data) is not DateNull() ? Because I put a checking condition when /MyDate/ != DateNull() but it doesn't fall to the condition, something like this :
With that 2 condition, I'm confirmed the 1st one with word 'ended' with /Id/ has a value and the 2nd one is this Date spoken earlier. So based on this IF condition, I thought it should be fall to True condition instead.
 
Thanks,
 
 
  • Martin Dráb Profile Picture
    241,656 Most Valuable Professional on at
    Your picture does show that you have a date, but it's the date that F&O considers as "no date". It's exactly what dateNull() function returns:
    static date dateNull()
    {
        return 01\01\1900;
    }
    Therefore the condition yourDate != dateNull() indeed returns false.
     
    Regarding the debugger, I don't have the same problem. The Value field shown a human-friendly text representation of the Date object:


    What version of the Finance and Operations extension for Visual Studio do you have installed?
  • Voltes Profile Picture
    596 on at
    Hi Martin,
     
    Yes, sorry, I misread the value, especially since the year already showing 1900.
    But anyway it does makes me want to have the "nice" display date like in your picture.
     
    If I'm not incorrectly search the Add-on version, this is it :
  • Martin Dráb Profile Picture
    241,656 Most Valuable Professional on at
    I have the same version of the extension, so that's not the reason. By the way, my VS is Enterprise 2019, 16.11.27.
     
    You can report it as a bug to Microsoft. But first, I would test if it happens always or just in some situations. For example, I tested it with a local variable, while you might have a table field.
  • Voltes Profile Picture
    596 on at
    Noted.
     
    Mine is Professional, wonder if that is the cause.
     
     
    Thanks

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 239 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 221

#3
Subra Profile Picture

Subra 166 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans