DATEADD This function adds a specified number value (as a signed integer) to a specified datepart of an input date value, and then returns that modified value. The DATEADD function simply allows you to add or subtract the specified number of units of time to a specified date/time value. Syntax DATEADD (datepart , number , date) Arguments datepart - The part of date to which DATEADD adds an integer number. This table lists all valid datepart arguments. 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 number - An expression that can resolve to an int that DATEADD adds to a datepart of date. DATEADD accepts user-defined variable values for number. DATEADD will truncate a specified number value that has a decimal fraction. It will not round the number value in this situation. date - An expression that can resolve to on
SQL Server SQL Server is a relational database management system (RDBMS) developed by Microsoft. SQL Server supports a wide variety of transaction processing, business intelligence and analytics applications in corporate IT environments. SQL Server supports ANSI SQL, which is the standard SQL (Structured Query Language) language. However, SQL Server comes with its own implementation of the SQL language, T-SQL. Why SQL Server? Microsoft SQL Server is a comprehensive database server and information platform offering a complete set of enterprise-ready technologies and tools that help people derive the most value from information at the lowest total-cost-of-ownership. Enjoy high levels of performance, availability, and security; employ more productive management and development tools; and deliver pervasive insight with self-service business intelligence (BI). A complete and integrated platform, Microsoft SQL Server brings it all together to get more value out of existing IT skills and asse