I have a report running off of a stored procedure in sql server. One of the parameters is datetime. In the report it wants the parameter to be date time and I just want it to select the date. It wont let me change it to just date, how can I accomplish this?
Haveyou considered useing the CAST in the SP to turn the datetime into a char field, and then basing the parameter from that? I work with a VFP database, and have sucessfully done it quite a few times to remove the time from the datetime field.
Bob: The nuisance there is that then the prompt wouldn't be a date type and you wouldn't get the date control nor bad data checking.
It's much easier to just strip the time portion out in the SP and retain the date formatting.
I believe that VFP has both a DATE and DATETIME data type, so this shouldn't be an issue for you since you can simply expose any parameters as type date.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.