|
|
Question : SQL Reporting Services - UK Date Format and Parameters
|
|
I have a report that I've developed that accepts several datetime parameters. In the Report properties, I've set the report Language to English (United Kingdom).
I am calling my report via the Web Service from an ASP.Net application. The ASP.Net application Culture and UICulture are set for en-GB.
What is happening is that when a date is passed to one of the report parameters (gEndDate) as "14/12/2004" (December 14), I get the following error:
The value provided for the report parameter 'gEndDate' is not valid for its type
If it helps any, my Visual Studio .Net environment where I am developing the report and Asp.Net application are on my laptop in the en_US language setting. The test machine where I am having the error is en-GB.
|
Answer : SQL Reporting Services - UK Date Format and Parameters
|
|
Simple option first... can you not just set your laptop settings to en_GB ?
I've had similar problems with date formats in the past and ended up converting the date within my dataset to a different format so that the parameter would pass correctly. Try something like : DATENAME(day, YourDateField) + ' ' + DATENAME(month, YourDateField) + ' ' + DATENAME(year, YourDateField) on the datafield that is used in your report, and then set your parameter to show the same format.
|
|
|
|
|