开发者

How to get Next month date from today date (i.e) exactly one month expires from today date

开发者 https://www.devze.com 2023-01-01 09:25 出处:网络
I have maintained two datas into my table 1 column2 column PaidDatevaliditydate in padidate ill give insert todaydate. but in validity date i may either inser开发者_如何学编程t validity for 1 week/1

I have maintained two datas into my table

1 column 2 column PaidDate validitydate

in padidate ill give insert todaydate. but in validity date i may either inser开发者_如何学编程t validity for 1 week/1 month.

I have used validity=DATEADD(Day,7,@paiddate) to insert validity for 1 week. but how to gtet the validity for 1 month from todays date


Isn't that just:

validity = DATEADD(month, 1, @paiddate)


DATE_ADD supports units.

0

精彩评论

暂无评论...
验证码 换一张
取 消