How can I change the date format of a date/time SSRS parameter - this is specific to en-SC culture? - reporting-services

I have an SSRS report that has a start and end date parameter (set to the date/time type) so that the user can choose the date range. The report sets the Localization Language value based on a parameter that is passed in at run time.
This works great for en-GB but we have a customer in the Seychelles and when the localization is set to en-SC, the date format of the 2 parameters defaults to mm-dd-yyyy, but this is incorrect as the date format should be dd-mm-yyyy. Because of this, the user is unable to set the dates correctly as choosing the 31st January for example gives a 'The value provided for the report parameter 'startdate' is not valid for its type' error.
When I drop down the date picker and pick 31st January, it fills the date in as 31/01/2023 but then displays the error. I have my Windows Region set to "Seychelles" and Regional Format to "English (Seychelles)".
Is there anything I can change to get this to work or is it a bug in SSRS?

Related

set default value for date time parameter in rdlc

i have a report which has extension of rdl (Microsoft Reporting Services Projects) in visual studio 2017 and this report has a date time parameter
i want to set a default value for this parameter as current date in order not to force a user to choose a value for this parameter
so when i right click the parameter i choose Default Values then Specify Values
then i add the Value =Now()
with no benefit when i preview the report the date time parameter becomes disabled
how to enter a default value as current date without time value
Your only question seems to be:
How to enter a default value as current date without time value?
To do this, rather than using =now() which returns the current date and time, you can use =today() which returns just today's date.

"The value provided for the report parameter 'enddate' is not valid for its type. (rsReportParameterTypeMismatch)" in SSRS v8

I am getting the above error whenever I try to run the report. My region settings are set to date format "dd-MM-yyyy', the calendar control displays the date in that format as expected but when I run the report I get the above error. I have checked tregion settings, made sure the report language property is set to the correct regional language (in this case en-ZA) but the report still seems to expect the date in American format and only works when I manually enter the date in American format instead of selecting via the calendar control which returns it in regional format.
Anyone know why it would return this error when it seems that all the date formats are set the same both on the machine and within the report?

Need to set a date parameter on an SSRS subscription

I have a report in SSRS that takes a single date as a parameter. What I want is for that report to have a subscription that uses the Saturday of two weeks ahead as the date (i.e., Monday 7/4 would give Saturday 7/16). How can I do this in the subscription? Looks like I can't do a formula in the parameter.
You have to set the default parameter value in the report, not in the subscription. An expression to use in the default for the date parameter would look something like this. There both add 2 weeks to the current date.
=DataAdd(DateInterval.WeekOfYear, 2, Today)
or
=Today.AddDays(14)
The default values can be set using the Report Parameters Properties dialog in the report designer. Just double-click on the parameter you want to change and the dialog will open.

SSRS Date Parameters - Setting Date B = Date A whenever Date A is changed

I am looking into a query from one of our users regarding the behaviour of date pickers on their report.
They have asked that when they enter a date in Date Paramater A that this is then duplicated in Date Parameter B.
I can achieve this when the report is first run by given Date Parameter A no default value (so it has to be chosen by the user) and seet Date Parameter B's default value via an expression to "=Parameters!StartDate.Value".
The question though is wether or not I can recreate this when Parameter A is updated. Therefore if they run the report once and then decide they need to choose another date. Can I set Date Parameter B to refresh each time Date Parameter A is changed?
E.G
Report is opened
Date Parameter A is set to 02/12/2013.
Date Parameter B now defaults to 02/12/2013.
Search is performed
A second search is required so, without closing the report the user changes the date in Date Parameter A
Date Parameter A is now set to 05/12/2013
Date Paramater B still says 02/12/2013 - can I somehow make this auto refresh to match Date Parameter A if Date Parameter A changes?
EDIT: Thanks to Kalim for pointing this out but it must also be noted that although I would like Date Parameter B to default to the new value selected by Date Parameter A, dates greater than that selected for Date Parameter A must also be available in case they wish to widen the range of dates.
Hopefully that is clear, but if any further information is required then please let me know.
Thanks in advance for your time and help.
You should be able to set the "Available Values" to the value of the first date parameter.
Select "Available Values" then select the "Specify values" option. Add a value and edit the expression of the value. Set this to the same expression you used in your default value expression.
Hope that makes sense!
Screenshot:

How to add time (data type) as parameter

I need to create a report that allows the user to give a date and time range for a report. I can set up the StartDate and EndDate (DateTime data type), but I can't seem to figure out how to add StartTime and EndTime.
This is a report where they want to view what was processed between a certain date and time. Is there anything that I can do so that the user can choose/enter a value for time in a report?
As #WillA mentioned in a comment, there is no date + time picker in SSRS. However, the datepicker that comes with a DateTime parameter does allow manually entering a time component.
First, here's what happens if you select just a date in the picker:
If you render this in a TextBox with format string HH:mm:ss, MMM d `yy, this will become:
00:00:00, Dec 9 `12
However, if the user manually :'( enters a time component it will work, e.g.
This will be rendered (with the same format) as such:
15:27:00, Dec 9 `12
This is not a very user-friendly solution though.