Microsoft Report Builder 2016 Parameter of Start Date Issue - reporting-services

I am showing header in my report showing two parameters Start Date and End Date. Both parameters' type is Date/Time. While setting in the Number Format in placeholder settings I tried to print the Date Like 01-MAR-2020 to 31-MAR-2020 using =UCase(Format(Parameters!STARTDATE.Value, "dd-MMM-yyyy")) but this is showing FEB as EB, MAR as 3AR and MAY as 5AY. Please share the solution to fix it if any. Thanks

Try this:
=UCase(Format(Parameters!STARTDATE.Value, "dd-MM-yyyy"))

Related

SSRS: Get Dates from Report Into Header Text Boxes

My Dataset has Variables #StartDate and #EndDate that I use to describe a Date Range of the Previous Month.
I Cast () both Date variables as Varchar - E.g. Cast(#StartDate As Varchar(10)) As StartDate and then include StartDate and EndDate in my Final Output.
The Report Body/Detail has StartDate and EndDate fields included but Not Visible.
In the Header of the Report, I have a Text Box in which I have the Expression:
=ReportItems!StartDate.Value
When I run the report, I get the following Warning - and nothing shows in the Test Box in the Header.
Warning [rsInvalidExpressionDataType] The Value expression used in textrun 'StartDate.Paragraphs[0].TextRuns[0]' returned a data type that is not valid.
When I make the two Date fields in the Report Visible, I see that the Values in there are all "#Error". This part is puzzling ... as the two fields SSMS show the dates in '2021-04-20' format.
One thing I should mention. The working report was created using an earlier version of Visual Studio. I am currently using VS 2017 to create this new report.
I would appreciate any help I can get.
Sincerely!
I found the answer in another thread that I hadn't found before. Sorry. The suggestion was to delete the rdl.Data file for the Report. Worked like a charm. Again, apologies that I didn't find that suggestion before I posted my question.

is there a workaround for sql server reporting servicesdate format (ddd)?

I'm using Sql Server 2016 Reporting Services, but Format String "ddd, dd.MM.yy" isn't displaying Weekday name, only 29.11.2018, bit should display Do,29.11.2018
any workaround / fix ?
ssrs ddd date format not working
Use the format
dddd, dd.MM.yyyy
This will give you the full day name Wednesday though, not Wed or whatever your locale day names are.

SSRS filter date time not working

Report SSRS in window 10 and open from IE 11
my computer filter date not working (not show image calendars)
How to fixed .
thank you.
Expanding on WEI_DBA, it looks like you need to set the default value of your Start Date parameter to ="3/16/2017 0:00:00" since your date format has months and days reversed.
Note that this can be confusing when you have a server with a different region setting than your workstation. The report is fine to develop locally and will then generate this error when deployed to your server.
In the parameter pane, right-click on Start Date and select Parameter Properties. Find "Data Type:" in the middle of the dialog and change the drop down to be Date/Time. Do the same for End date.
A date/time parameter will will show the date picker and will ensure you are passing a properly structured date value into your dataset query, regardless of your culture/language settings.

SSRS - date-time parameter transposition

This is a problem in DEV with the following configuration:
SSRS 2012
Reports configured to the language en-gb
I have recently noticed that all of my date time parameters are getting transposed when i click "View Report". So for example a GB date 08/01/2015 gets transposed to 01/08/2015 on clicking "View Report". This results in having to click the button twice for the report to show me the correct data. I have used SSRS on and off for many years and I have never noticed this before. Can anyone shed some light on this?
Obviously the parameter is switching between en-gb and en-us but why and how do i stop it?
I found a post where some one is suffering from the same problem as me but their solution seems a little overkill issue with DateTime datatype in SQL Server Reporting Services. They recomend changing your regional settings and IIS settings which may fix and or break all sorts.
I believe that the problem can be how do you set up the default value in the parameter definition. If instead of a fixed date, you use a dataset with a date time funtcion (something like " Select dateadd(month,-1,current_timestamp) as [Default Date]") and a default value based on that dataset, your problem could be solved, because you're not specifying any date format in the dataset's field and it should contain the right value.
Hope this helps.

SSRS Date value is not valid

A few weeks ago the guys who handle our servers upgraded from MSSQL2008 R2 to MSSQL2012 ServicePack 2
Now all the reports where we pass a date parameter from our application give us an error.
The date in the database is in the following format: "DD-MM-YYYY 00:00:00:0000"
So we changed the value we are passing from our application to fit this format, but the date is still invalid.
We don't debug on the server, so we installed all relevant versions locally and it worked fine.
Anybody else had this problem?
Yes, I have had that problem with a update from SQL2012 to SQL2014. But that was caused by the fact that SQL 2014 has more datefields. This is not relevant for you.
In your case though, I would change all the fields to this format:
"YYYY-MM-DD 00:00:00:0000". You can reformat it in the report if you want it to be shown like "DD-MM-YYYY 00:00:00:0000"
I suspect it has something to do with regional settings somewehere. When using YYYY-MM-DD instead of DD-MM-YYYY you avoid al that sh*t.
I always use YYYY-MM-DD to avoid confusing.