gustavnavar / Grid.Blazor

Grid component with CRUD for Blazor (client-side and server-side) and ASP.NET Core MVC
GNU Lesser General Public License v2.1
700 stars 135 forks source link

Excel output date format #367

Open mm-ing opened 2 years ago

mm-ing commented 2 years ago

After grid export to excel a grid column formatted as date looks like a date now, but actually it's a string without the possibility to use the excel filter features for datetime.

Annotation example: [GridColumn(Position = 10, Title = "Value Date", Format = "{0:dd/MM/yyyy}")]

We changed the ExcelWriter.cs a little bit and got the expected output. Please substitute the ExcelWriter with the modified one and the problem will be solved.

ExcelWriter.zip