How to get the date of the next month from today (i.e. exactly one month will expire from today

I saved two tables in a table

1 column 2 columns PaidDate validitydate

in padidate is bad to give todaydate paste. but on the validity date I can either insert a validity period of 1 week / 1 month.

I used validity = DATEADD (Day 7, @paiddate) to insert a validity period of 1 week. but as gtet valid for 1 month from today

+3
source share
2 answers

Isn't it like that:

validity = DATEADD(month, 1, @paiddate)
+5
source

DATE_ADD supports units.

+1
source

Source: https://habr.com/ru/post/1747817/


All Articles