Number of days left in current month

后端 未结 6 877
梦谈多话
梦谈多话 2021-01-15 03:44

Number of days left in a given month How do I find the number of days left in the current month? Example if current month is November and todays date is 16/11/2016 The Numb

6条回答
  •  说谎
    说谎 (楼主)
    2021-01-15 04:28

    DECLARE @date DATE SET @date='16 Nov 2016' SELECT DATEDIFF(DAY, @date,EOMONTH(@date))
    

提交回复
热议问题