简体   繁体   中英

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.

文本

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?

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:

在此处输入图像描述

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM