Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
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)