Free Support Forum - aspose.com

How to use "CellValueType"

I want to make a cell to show it's content in the value type of DateTime. I think maybe the CellValueType is helpful, but I don't know how to use it.Could u give me a example?Thank u very much!

In Aspose.Excel.Express, please format that cell with date format in your designer file. If you want to set it at run time, please use Aspose.Excel.

You can use Cell.Style to set a cell with datetime format.

For example,

cell.Style.Number = 14;

or

cell.Style.Custom = “mmddyyyy”;

thank u first.
how to show hour:minute?

i have got it .u don’t need to reply.thank u all the same.