Home
Tool
Json Beautify
Find Web URL
Inventory Management System
Test Mantra RD Service
Calculate your EMI
Project
Inventory Management System
Task Management
Project Management
Mobile Store Management
Money Transfer Tool
Store Management
About Us
Contact
Login
Registration
Search
SQL Server
DATEADD() Function in SQL Server
By
Csharp Code
May 01 2020
996 View's
0 Comment's
Like (
0
)
Dislike (
0
)
The DATEADD() function adds a time/date interval to date and then returns the date.
The time/date interval to add. Can be one of the following values
year, yyyy, yy = Year
quarter, qq, q = Quarter
month, mm, m = month
dayofyear, dy, y = Day of the year
day, dd, d = Day
week, ww, wk = Week
weekday, dw, w = Weekday
hour, hh = hour
minute, mi, n = Minute
second, ss, s = Second
millisecond, ms = Millisecond
SELECT
DATEADD(
year
, 1,
'2018/07/20'
)
AS
DateAdd;
SELECT
DATEADD(
month
, 1,
'2018/07/20'
)
AS
DateAdd;
SELECT
DATEADD(
hour
, -2,
'2017/08/25 10:10'
)
AS
DateAdd;
SELECT
DATEADD(n, -2,
'2017/08/25 10:10'
)
AS
DateAdd;
SELECT
DATEADD(ss, -2,
'2017/08/25 10:10:40'
)
AS
DateAdd;
0 Comment's
Comment Form
Submit Comment
Csharp Code
If opportunity doesn’t knock, build a door.⛩
Popular Post
WPF
How to Use Logger in WPF Application
By
Csharp Code
Jun 07 2022
C-Sharp
Update Specific Users Out of Oce Settings C# with Example
By
Csharp Code
Jun 06 2022
C-Sharp
Retrieve Specified User''s Out of O ce Settings C# with Example
By
Csharp Code
Jun 06 2022
C-Sharp
Large Object Heap compaction C# with Example
By
Csharp Code
Jun 06 2022
C-Sharp
Weak References C# with Example
By
Csharp Code
Jun 06 2022
C-Sharp
Source code in the view C# with Example
By
Csharp Code
Jun 06 2022
Notifications