How to represent a DateTime in Excel

后端 未结 8 1603
梦如初夏
梦如初夏 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

    Some versions of Excel don't have date-time formats available in the standard pick lists, but you can just enter a custom format string such as yyyy-mm-dd hh:mm:ss by:

    1. Right click -> Format Cells
    2. Number tab
    3. Choose Category Custom
    4. Enter your custom format string into the "Type" field

    This works on my Excel 2010

提交回复
热议问题