views:

33

answers:

2

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 insert 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

A: 

Isn't that just:

validity = DATEADD(month, 1, @paiddate)
ho1
A: 

DATE_ADD supports units.

Marian