在SSRS中使用下面的示例查詢會將月份返回爲單個數字(1-12)。我想要的是像2000年1月那樣顯示日期。我將如何更改我的代碼以便能夠從單個月份格式化爲MMM YYYY格式?我試圖在Visual Studio本身的格式,但它現在返回作爲MMM YYYY。SSRS/TSQL日期格式
select distinct count(*) as Count,
con.STATE,
month(con.sub_Date) as Month,
year(con.sub_Date) as Year
from contract con
group by con.STATE,month(con.sub_date),year(con.sub_date)
看起來好像可以工作,我會看到它後,我會看到更多。非常感謝! – user2146212 2013-03-12 14:48:27