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

Date Convert

$
0
0

The below is returning 201402011 but I now need it to return date time:

LEFT(

CONVERT(CHAR(8),DATEADD(MM,-1,GETDATE()),112),6)+'011'

How should I edit?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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