First day of the next month

前端 未结 7 2155
自闭症患者
自闭症患者 2021-02-07 00:37

I\'m trying get the results where it only displays OrderDates before the LAST day of the CURRENT month. I\'m guessing it would be like this...

SELECT OrderDate
F         


        
相关标签:
7条回答
  • 2021-02-07 01:02
        Select Convert(date,Dateadd(dd,1 - DATEPART(dd,getdate()), DATEADD(mm,1,getdate())),103)
    
    0 讨论(0)
提交回复
热议问题