Compare commits
No commits in common. "74da92bc7260f63e6c4af20f03c63042d84cf168" and "a9a435ee0fc4428beda188729efaf5b9b6a5e6b0" have entirely different histories.
74da92bc72
...
a9a435ee0f
|
|
@ -77,8 +77,7 @@ public static class ExcelExportHelper
|
|||
//处理集合里面时间类型,根据当前语言将时间转变为字符串
|
||||
foreach (var itemValuePair in itemDic)
|
||||
{
|
||||
// 临床数据 1,1 会变成2024-01-01
|
||||
if (itemValuePair.Value?.ToString().Length > 4 && DateTime.TryParse(itemValuePair.Value?.ToString(), out DateTime result))
|
||||
if (DateTime.TryParse(itemValuePair.Value?.ToString(), out DateTime result))
|
||||
{
|
||||
itemDic[itemValuePair.Key] = ExportExcelConverterDate.DateTimeInternationalToString(result);
|
||||
}
|
||||
|
|
@ -338,7 +337,7 @@ public static class ExcelExportHelper
|
|||
//处理集合里面时间类型,根据当前语言将时间转变为字符串
|
||||
foreach (var itemValuePair in itemDic)
|
||||
{
|
||||
if (itemValuePair.Value?.ToString().Length > 4 && DateTime.TryParse(itemValuePair.Value?.ToString(), out DateTime result))
|
||||
if (DateTime.TryParse(itemValuePair.Value?.ToString(), out DateTime result))
|
||||
{
|
||||
itemDic[itemValuePair.Key] = ExportExcelConverterDate.DateTimeInternationalToString(result);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue