Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Execl.cs:line 225 add datetime Formatter use #30

Open
929496959 opened this issue Jul 25, 2023 · 1 comment
Open

update Execl.cs:line 225 add datetime Formatter use #30

929496959 opened this issue Jul 25, 2023 · 1 comment

Comments

@929496959
Copy link

case CellType.Numeric: if (HSSFDateUtil.IsCellDateFormatted(cell))//日期类型 { if (!string.IsNullOrEmpty(cellConfig?.Formatter)) { return cell.DateCellValue.ToString(cellConfig?.Formatter); } return cell.DateCellValue.ToString(); } else//其他数字类型 { return cell.ToString(); }

@929496959
Copy link
Author

`
case CellType.Numeric:
if (HSSFDateUtil.IsCellDateFormatted(cell))//日期类型
{
if (!string.IsNullOrEmpty(cellConfig?.Formatter))
{
return cell.DateCellValue.ToString(cellConfig?.Formatter);
}
return cell.DateCellValue.ToString();
}
else//其他数字类型
{
return cell.ToString();
}

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant