.
This commit is contained in:
@ -97,7 +97,7 @@ namespace IronIntel.Contractor
|
||||
}
|
||||
else if (DataType == CellDataType.Date)
|
||||
{
|
||||
ft = "MM-dd-yyyy";
|
||||
ft = "M-d-yyyy";
|
||||
}
|
||||
else if (DataType == CellDataType.Bool)
|
||||
{
|
||||
|
@ -228,7 +228,7 @@ namespace IronIntel.Contractor.ExportExcel
|
||||
CellFormat cf = (CellFormat)stylepart.Stylesheet.CellFormats.ElementAt((int)cell.StyleIndex.Value);
|
||||
if (cf.NumberFormatId >= 14 && cf.NumberFormatId <= 22)//Date
|
||||
{
|
||||
value = DateTime.FromOADate(d).ToString("MM/dd/yyyy");
|
||||
value = DateTime.FromOADate(d).ToString("M/d/yyyy");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user