Solve DataGrid display time format

xiaoxiao2021-03-05  23

Usually DataGrid shows the time in the following format: 2002-10-10 0:00:00 after 0:00:00 If you don't use it, you will now talk about how to solve it. In the DataGrid property generator -> column -> data format Set expression -> Fill in {0: D} // Display Format 2002-10-10 Properties Builder -> Column -> Data Format Setting Expression -> Fill {0 : D} {0: hh} {0: mm} {0: SS} // Display format 2002-10-10 0:00:00 If you give {0: ss}, you will only display hours and points, Push it in this class.

转载请注明原文地址:https://www.9cbs.com/read-37809.html

New Post(0)