Adding Date to Excel using Open XML

Posted by Ant on Stack Overflow See other posts from Stack Overflow or by Ant
Published on 2010-04-25T17:35:42Z Indexed on 2010/04/25 17:43 UTC
Read the original article Hit count: 194

Filed under:
|
|

Hi, I would like to insert Date value to excel file using Open XML.

Here is my code sample.

cell.CellValue = new CellValue(value.ToString());   
cell.DataType = new EnumValue<CellValues>(CellValues.Date);  

© Stack Overflow or respective owner

Related posts about open

Related posts about Xml