SSRS Date Culture Error

放肆的年华 提交于 2019-12-25 09:42:38

问题


I've got a strange error when trying to pass date parameters to SSRS.

All of the dates are retrieved using a DatePicker and validated so that only real dates are allowed.

However passing dates in the format dd/mm/yyyy causes SSRS to throw TypeMissmatchException if the day is 13 or higher.

I'm assuming this is due to the culture of SSRS being set to EN-US, is it possible to change this? or do I need to convert all dates that I send SSRS into American format.


回答1:


The easiest way is to send dates in military format yyyy-mm-dd if possible as that is always interpreted correctly regardless of culture settings.



来源:https://stackoverflow.com/questions/7502751/ssrs-date-culture-error

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