We have a function that takes a dataset and exports it to excel using the GridExcelExport function. The problem we are having is that this is automatically converting the date format in excel to mm/dd/yyyy
We need to be able to specify the format that this comes out.
The code that we are using looks like this:
public static void ExportToExcel(this DataSet data, string filename)
{
GridGroupingControl syncGrid = new GridGroupingControl();
syncGrid.DataSource = data.Tables[0];
GridExcelExport gridExcelExport = new GridExcelExport(syncGrid, filename + ".xls");
gridExcelExport.ExportNestedTable = true;
gridExcelExport.Export();
}
Regards
Jo