“DECLARE @Now DATETIME = GETDATE(); DECLARE @Today DATE = @Now; DECLARE @Yesterday DATE = DATEADD(DAY, -1,@Today); DECLARE @NowLookup int = CAST(CONVERT(varchar,@Now,112) as INT);” Code Answer


DECLARE @Now DATETIME = GETDATE(); DECLARE @Today DATE = @Now; DECLARE @Yesterday DATE = DATEADD(DAY, -1,@Today); DECLARE @NowLookup int = CAST(CONVERT(varchar,@Now,112) as INT);
whatever by Unusual Unicorn on Oct 05 2020 Donate
0
Add a Grepper Answer

Whatever answers related to “DECLARE @Now DATETIME = GETDATE(); DECLARE @Today DATE = @Now; DECLARE @Yesterday DATE = DATEADD(DAY, -1,@Today); DECLARE @NowLookup int = CAST(CONVERT(varchar,@Now,112) as INT);”


Whatever queries related to “DECLARE @Now DATETIME = GETDATE(); DECLARE @Today DATE = @Now; DECLARE @Yesterday DATE = DATEADD(DAY, -1,@Today); DECLARE @NowLookup int = CAST(CONVERT(varchar,@Now,112) as INT);”



Learn how Grepper helps you improve as a Developer!




INSTALL GREPPER FOR CHROME




More “Kinda” Related Whatever Answers View All Whatever Answers »




Browse Popular Code Answers by Language




Browse Other Code Languages




X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.