SQL 报告服务报告未以正确的格式显示日期
我已经在 SQL Server 2005 上构建了一个报告服务报告,但在独立文本框中无法正确设置日期格式。
我正在使用的代码如下:
="Date: " & FormatDateTime(Parameters!date.Value, 2))
-- 根据 MSDN,当设置为“2”时,它应该会消除我的系统文化,但事实并非如此。
当前显示 = MMDDYYYY, 想要显示 = DDMMYYYY
有谁知道我做错了什么?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些报告有自己的国际化设置 - 他们不使用系统。
打开报告属性页面(单击报告的空白区域并检查“属性”面板)并查看语言设置。它将设置为英语(美国)。将其设置为 =User!Language 以使其尊重用户的区域设置。
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.