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

how to convert the given date format

$
0
0

Take current date as 19/11/2013 to convert this date to YYYYMMDD and concatenate with  01 in place of 'DD'the given like 20131101 and subtract with the given date format to -1 and find out the last year date .

Can u pls some one telle me the query am new to Tsql........

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>