|
|
Question : SQL Reporting Service: Datetime parameter always displays "12:00 AM"
|
|
In SQL Server Reporting Services what have many date parameters declared as DateTime and so they display a pure date with the time of "12:00 AM". We want the DateTime data type for validation purposes. Is there a way to force the format of the display to only show the date? I have tried various approaches with formatting but they all produce execution errors. I would be happy with using a String if I can validate the data to make sure it is a date.
Thanks for your help.
|
Answer : SQL Reporting Service: Datetime parameter always displays "12:00 AM"
|
|
If your referring to Report Manager displaying the DateTime in the parameter input box, then no, you cannot format this. You can only format the date within the report itself, or like the example I posted before, give the user a dropdown parameter list of dates.
Apparently you can set the parameter to a string and then it won't enter the time, though you'll have to convert it into a date before it runs against your dataset. This way though, report users can enter a non-date as a parameter.
|
|
|
|
|