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

SQL 2008 substring date

$
0
0

Sorry guy but in SQL Server 2008 R2 having a date as 2012-05-10

how can I retrieve a fromat like 201205 . I tried with substring, concat and stuff like this but I went into a loop...the last was year(setdate)&month(setdate) but it doesn't work...

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>