I have this part of a query made in POSTGRE and I want to change it for using it in SQL Server, but there is an error in DATE()
function.
AND DATE(A.SERVERTIME) = DATE(B.SERVERTIME) + 1
SERVERTIME
is TIMESTAMP
datatype.
I want to know how to get the date part from SERVERTIME
.