Answers for "sql server datetime"

SQL
0

sql server datetime

DECLARE @date date = '12-21-16';  
DECLARE @datetime datetime = @date;  
  
SELECT @datetime AS '@datetime', @date AS '@date';  
  
--Result  
--@datetime               @date  
------------------------- ----------  
--2016-12-21 00:00:00.000 2016-12-21
Posted by: Guest on October-28-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language