Pages
Home
React JS
React Native
SQL Server
C#.net
Interview
Videos
Angular
ASP.Net
AJAX
Contact Us
24 April 2014
How to get last day of the month in SQL Server
DECLARE
@date
DATETIME
SET
@date
=
'2014-04-5'
SELECT
DATEADD
(
dd
,
-
DAY
(
DATEADD
(
m
,
1
,
@date
)),
DATEADD
(
m
,
1
,
@date
))
AS
LastDayOfTheMonth
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment