How to set Column Type when using EPPlus

前端 未结 5 1047
予麋鹿
予麋鹿 2021-02-02 05:12

I\'m using EPPlus to generate Excel files, in DAL I\'m populating DataTable, filling data into table, and passing table to Presentation La

5条回答
  •  忘了有多久
    2021-02-02 05:48

    Based on this discussion (epplus.codeplex.com/discussions/349927) you can also set column format to date.

    worksheet_1.Cells[row, 3].Style.Numberformat.Format = DateTimeFormatInfo.CurrentInfo.ShortDatePattern;

提交回复
热议问题