Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

declare date variable sql

//The code below will get you a date and time 72 ago.
DECLARE @HoursAgo DATETIME = DATEADD(HOUR, -72, GETDATE());
SELECT @HoursAgo AS DaysOrHoursAgo;
 
PREVIOUS NEXT
Tagged: #declare #date #variable #sql
ADD COMMENT
Topic
Name
9+4 =