How to represent a DateTime in Excel

后端 未结 8 1604
梦如初夏
梦如初夏 2020-11-28 07:12

What is the best way of representing a DateTime in Excel? We use Syncfusions Essential XlsIO to output values to an Excel document which works great. But I can\

8条回答
  •  误落风尘
    2020-11-28 07:55

    Excel can display a Date type in a similar manner to a DateTime. Right click on the affected cell, select Format Cells, then under Category select Date and under Type select the type that looks something like this:

    3/14/01 1:30 PM
    

    That should do what you requested. I tested sorting on some sample data with this format and it seemed to work fine.

提交回复
热议问题