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

781 Views Asked by At

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?

2

There are 2 best solutions below

0
Mr Qian On BEST ANSWER

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.

0
reynoldsbj On

Click the dropdown in that previewer and unpin Ticks or pin Date if you want to see both.