Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to convert dateid column to getdate format

$
0
0
Hi All,

I have a date_column which will be something like 20140202 and now i have to use this to compare to a getdate .It must be something like this

where date_column = dateadd(dd, 0,datediff(dd, 0,GETDATE()-1)).

So basially i want my date column to be converted into a perfect datetime format.

Can someone please help me with this?

Thanks

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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