SQL reporting services report not showing date in correct format

安稳与你 提交于 2019-12-11 16:49:54

问题


i have built a reporting services report off SQL server 2005 and am having trouble getting the date to format correctly in a stand-alone textbox.

The code i am using is as follows:

="Date: " & FormatDateTime(Parameters!date.Value, 2))

-- According to MSDN it should work off my systems culture when set to '2' however it is not.

Currently being displayed = MMDDYYYY, Want to display = DDMMYYYY

Does anyone know what i am doing wrong?


回答1:


The reports have their own Internationalisation settings - they don't use the systems.

Open your report Properties page (Click on the blank area of the report and check the Properties panel) and look at the Language settings. It will be set to English (United States). Set it to =User!Language to make it respect the user's regional settings.



来源:https://stackoverflow.com/questions/1540948/sql-reporting-services-report-not-showing-date-in-correct-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!