<p>I’m using <code>EPPlus</code> to generate <code>Excel</code> files, in DAL I’m populating <code>DataTable</code>, filling data into table, and passing table to Presentation Layer. From there I’m using <code>LoadFromDataTable()</code> method to generate <code>Excel</code> file.</p>
<p>Everything works fine, except that I want to set one of the column’s type to <code>Date</code>. I tried to set Column type of my <code>DataTable</code> to<code>Date</code> and than pass <code>DataTable</code> to Presentation Layer, but it seems <code>EPPlus</code> either, ignored it, or didn’t recognize, because when I’m opening generated <code>Excel</code> file, cell’s type is <code>Number</code>.</p>
<p>If I manually Format Cells and set Type to <code>Date</code>, <code>Excel</code> shows correct dates. So how can I achieve this ?</p>