Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to get yesterday date in sql

SELECT DATEADD(day, -1, CAST(GETDATE() AS date)) AS YesterdayDate;
 
PREVIOUS NEXT
Tagged: #yesterday #date #sql
ADD COMMENT
Topic
Name
7+1 =