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 :
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,
 
 
I have the same question (0)
  • Martin Dráb Profile Picture
    236,951 Most Valuable Professional on at
    How to read date while debugging ?
    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
    How to read date while debugging ?
    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
    236,951 Most Valuable Professional on at
    How to read date while debugging ?
    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
    How to read date while debugging ?
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 696 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 569

#3
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans