SQL: Add 30 Days.

hello

I am using VB.NET and SQL. I want to have a WHERE, where I can use Today + 30 Days.

until now I have:

Tbl_Back_End > GETDATE()

how can I add 30 days to GETDATE()?

Thanks
RuttensoftAsked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
DATEADD(DAY, 30, GETDATE())
0
 
ajnt__Commented:
Or try this

WHERE Tbl_Back_End > DateAdd("d", 30, GETDATE())
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
the "d" syntax would be for ms access, and NOW() instead of GETDATE().
for ms sql server, it would be  like I suggested initially.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.