我想减去3个月:
DECLARE @ReportingDate date = '6/30/2019'
SELECT DATEADD(MONTH, -3,@reportingDate)
但是当正确的月底应该是'2019-03-31'时,我得到的是'2019-03-30'。我该如何解决?
答案 0 :(得分:2)
一种简单的方法是:
NU1202
Package Microsoft.EntityFrameworkCore.Cosmos 3.0.0-preview8.19405.11
is not compatible with netcoreapp2.1 (.NETCoreApp,Version=v2.1).
Package Microsoft.EntityFrameworkCore.Cosmos 3.0.0-preview8.19405.11
supports: netstandard2.1 (.NETStandard,Version=v2.1)