MSSQL - DATEADD Function

Syntax: DATEADD (datepart , number , date )

Datepart Abbreviations
year yy, yyyy
quarter qq, q
month mm, m
dayofyear dy, y
day dd, d
week wk, ww
weekday dw, w
hour hh
minute mi, n
second ss, s
millisecond ms
microsecond mcs
nanosecond ns

Example:
SELECT DATEADD(month, 1, '2006-08-30')
SELECT DATEADD(day, 1, GETDATE())


Web Reference: MSDN Microsoft

Popular posts from this blog

SAP CPI - Loop Process Call with SuccessFactor (oData V2)

Setting IntelliJ IDEA to run Groovy Script

C# - BASE64 to Image