Quantcast
Channel: Getting started with SQL Server forum
Viewing all articles
Browse latest Browse all 9243

How do i add time "23:00:00" to a date data type? I have mentioned the code below.

$
0
0

DECLARE @FIRSTDATE date = '2014-07-06'.

I need to add time to this without initializing it on the first place. SO basically it should look like  '2014-07-06 23:00:00'. As far as i know it can be done using something like dateadd(). 


Viewing all articles
Browse latest Browse all 9243


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>