Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 DateTime Parameter

Author  Topic 

Isabel
Starting Member

6 Posts

Posted - 2007-01-16 : 18:08:14
I have a SRS report that take a paramter(Datetime ), datepicker.
User can manually add time to the parameter , is there a way i can override the time value such that the parameter ia always date only when report is being rendered.

Thanks,

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2007-01-16 : 19:02:14
You can just convert the date/time to a date only in your SQL code or stored procedure.
Example:
where MyDateColumn = dateadd(dd,datediff(dd,0,@inputdate),0)


CODO ERGO SUM
Go to Top of Page
   

- Advertisement -