Repository navigation
2.1.0版本,从excel导入数据,不识别日期格式 #68
Description
Activity
问题已收到,正在处理。目前发现线上的单元测试是OK的,但是本地单元测试确实没有通过,原因已经找到,我们会尽快处理并发布Beta版。
netcore2.2的项目不能使用 Magicodes.IE.Excel 2.1.0以上的版本。nuget添加失败
- added 2 commits that reference this issue
on Mar 25, 2020 试试2.2 Beta版的包
刚试过2.1.4版本没有问题。
netcore2.2 不能使用2.1.4以上的包,我直接使用下载的源码
是Beta版的不支持么?.net core 2.2我试过用2.1.4可以啊。
我是webapi项目 ,目标框架 netcore 2.2 ,vs2017工具
PM> Install-Package Magicodes.IE.Excel -Version 2.1.4
正在还原 D:\Work\isolate_user\room_user\api\cov19_api\cov19_api\cov19_api.csproj 的包...
Install-Package : NU1107: Microsoft.Extensions.Configuration 中检测到版本冲突。直接安装/引用 Microsoft.Extensions.Configuration 3.1.0 到项目 cov19_api 可解决此问题。
cov19_api -> Magicodes.IE.Excel 2.1.4 -> EPPlus 4.5.3.3 -> Microsoft.Extensions.Configuration.Json 3.1.0 -> Microsoft.Extensions.Configuration (>= 3.1.0)
cov19_api -> Microsoft.AspNetCore.App 2.2.0 -> Microsoft.Extensions.Configuration (>= 2.2.0 && < 2.3.0).
所在位置 行:1 字符: 1- Install-Package Magicodes.IE.Excel -Version 2.1.4
-
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : 程序包还原失败。正在回滚“cov19_api”的程序包更改。
所在位置 行:1 字符: 1- Install-Package Magicodes.IE.Excel -Version 2.1.4
-
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
其中的WebApplication1项目不能添加Magicodes.IE.Excel 2.1.4
收到。
这是EPPlus的坑,已解决:
Install-Package Magicodes.IE.Excel -Version 2.2.0-beta5
用2.2.0-beta5从excel导入数据报错
System.Drawing.Common 要用System.Drawing.Common (>= 4.6.0-preview6.19303.8)的包才行,4.7.0包找不到dll
ConsoleApp5.zip
里面valuescontroller是个测试已经找到原因,将尽快处理
https://www.nuget.org/packages/Magicodes.IE.Excel/2.2.0-beta6
好了,请使用 2.2.0-beta6Install-Package Magicodes.IE.Excel -Version 2.2.0-beta6ok,谢谢
- added a commit that references this issue
on Mar 27, 2020
Describe the bug
A clear and concise description of what the bug is.
excel中 列是日期格式,导入报错,提示“值 43914 无效,请填写正确的日期时间格式!”
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.