select GETDATE() as currentDate
returns
2016-01-18 10:54:31.780
How can I do that it return
2016-01-18 10:00:00
according MSDN GETDATE()
has no parameterized constructor
select GETDATE() as currentDate
returns
2016-01-18 10:54:31.780
How can I do that it return
2016-01-18 10:00:00
according MSDN GETDATE()
has no parameterized constructor
Try like this,
SELECT FORMAT(getdate(), 'yyyy-MM-dd:HH:00:00') as DateAndHour