Created
May 28, 2018 09:00
-
-
Save NaserKhoshfetrat/0e29bf3d86c2c58c82c58067c48886dc to your computer and use it in GitHub Desktop.
sql get date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @endDateTime datetime = cast(getdate() + 1 as date); | |
declare @startDateTime datetime = DATEADD(dd, 1, DATEDIFF(dd, 0, GETDATE())) ; | |
set @endDateTime= dateadd(second, 86399, @endDateTime) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment