Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Datediff() Function to Show Date Difference in Days Hours Minutes
WhatsApp
Ramasagar Pulidindi
10y
4.8
k
0
0
25
Blog
SELECT
DATEDIFF
(
hh
,
GETDATE
()-
1
,
GETDATE
())
AS
DateDifference
SELECT
DATEDIFF
(
day
,
'2013-02-07'
,
GETDATE
())
AS
DateDifference
SELECT
DATEDIFF
(
ww
,
'2013-02-07'
,
GETDATE
())
AS
DateDifference
Up Next
Function To Convert Seconds to Hour: Minute: Seconds Format in Sql Server
Ebook Download
View all
Functions in SQL Server: Practical Guide
Read by 9k people
Download Now!
Learn
View all
Membership not found