Answers for "SQL server date"

SQL
3

sql server current date

GETDATE()
Posted by: Guest on April-07-2020
2

SQL Date Format

SELECT FORMAT(dbo.column, 'M/dd/yyyy')
Posted by: Guest on December-09-2020
0

sql server date field syntax

DATE - format YYYY-MM-DD
Posted by: Guest on October-14-2020
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