Add 12 minutes to 24th March 1964 : DATEADD « Date Timezone « SQL Server / T-SQL

SQL Server / T-SQL
1. Aggregate Functions
2. Analytical Functions
3. Constraints
4. Cursor
5. Data Set
6. Data Type
7. Database
8. Date Timezone
9. Index
10. Insert Delete Update
11. Math Functions
12. Select Query
13. Sequence
14. Store Procedure Function
15. String Functions
16. Subquery
17. System
18. Table
19. Table Joins
20. Transact SQL
21. Transaction
22. Trigger
23. View
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
SQL Server / T-SQL » Date Timezone » DATEADD 
Add 12 minutes to 24th March 1964

1>
2> -- Add 12 minutes to 24th March 1964
3>
4SELECT DATEADD(mi,12,"24 March 1964")
5>
6SELECT DATEADD(n,12,"24 March 1964")
7> GO

-----------------------
1964-03-24 00:12:00.000

(rows affected)

-----------------------
1964-03-24 00:12:00.000

(rows affected)
1>

           
       
Related examples in the same category
1. DATEADD: add or subtract a number of days, months, or years from a specific date
2. SELECT DATEADD(yy,12,"24 March 1964"): Add 12 years to 24th March 1964
3. SELECT DATEADD(m,12,"24 March 1964"): Add 12 months to 24th March 1964
4. SELECT DATEADD(wk,12,"24 March 1964"): Add 12 weeks to 24th March 1964
5. SELECT DATEADD(hh,12,"24 March 1964"): Add 12 hours to 24th March 1964
6. DATEADD(Day, 90, '4-29-1988'): adds a specific number of date unit intervals to a date/time value
7. DATEADD(year, 18, '4-29-1988 10:30 AM'): 18 years later
8. DATEADD(yy, -18, '4-29-1988 10:30 AM'): 18 years before
9. DATEADD(second, 9000, '4-29-1988 10:30 AM'): 9,000 seconds after
10. DATEADD(mi, -9000000, '4-29-1988 10:30 AM'): 9,000,000 milliseconds before
11. Combine the CONVERT()and the DATEADD() functions to format a return date value nine months before September 8, 1989
12. DATEADD: add days to a date
13. Combine DateADD and DateDIFF to get the last date of a month
w___w___w_.___j___av_a___2___s_.c_o_m__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.