Search code examples
c#visual-studiodebuggingvisual-studio-debuggingdebuggervisualizer

Visual Studio debugger shows Date Time as Ticks when mouse hover instead of an understandable Date String Format


In visual studio (I'm using 2019), during debugging, when I hover over a DateTime object, it shows the date in Ticks instead of a readable date string (such as YYYY-MM-dd HH:mm:ss, etc).

The picture below shows this annoying behavior.

Text

I remember in my old visual studio 2017, it showed date-time objects in "YYYY-MM-DD HH:mm:ss.ttt" format. How do I change this?


Solution

  • I agree with reynoldsbj. I think you have pinned the Ticks property in the LoadAreaTo Drop down menu bar so that it will overwrite the default Date property.

    This is a video about the detailed description:

    enter image description here

    You should unpin the property Ticks so that it will show date-time objects in YYYY-MM-DD HH:mm:ss.tt format.