Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

How to read date while debugging ?

(0) ShareShare
ReportReport
Posted on by 592
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,
 
 
  • Voltes Profile Picture
    Voltes 592 on at
    How to read date while debugging ?
    Noted.
     
    Mine is Professional, wonder if that is the cause.
     
     
    Thanks
  • Martin Dráb Profile Picture
    Martin Dráb 230,900 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
    Voltes 592 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
    Martin Dráb 230,900 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?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans