Quantcast
Channel: COGNOiSe.com - The IBM Cognos Community
Viewing all articles
Browse latest Browse all 12972

Re: SQL sever date column convertion from varchar to date

$
0
0
2017-06 is not a date, so _add_months() will not work with that as an argument.

Assuming your parameter is named ?yearmo?, your filter will look like this:

[code]
[year_date] between

cast(
   year(
      _add_months (
         cast(?yearmo? + '-01', date),
         -1...

Viewing all articles
Browse latest Browse all 12972

Trending Articles



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