gunite
asked on
Format DateTime Picker
When using the date time picker to fill a parameter in a report is there a way to format the output so it only returns mm/dd/yyyy (ex. 04/01/2009) instead of returning the Date and Time?
ASKER
I tried that before on the proc in the WHERE (A.Date >=Format(@startdate, "MM/dd/yyyy")) and I get Format is not a built-in function.
yeah, Format is not SQL it is a Reporting Services function.
If it is in SQL that you want just the date try,
SELECT CONVERT(VARCHAR,yourDate,1 01)
If it is in SQL that you want just the date try,
SELECT CONVERT(VARCHAR,yourDate,1
ASKER
I also tried WHERE (A.Date >=convert(varchar,@startda te,101)) to no avail. The date field had to be a varchar on the table.
ASKER
LOL we posted at the same time.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It worked fine once I declared @startdate as a datetime. Thank you for the help. It seems so simple sometimes once you find out what the solution is. I have a lot to learn.
Glad to help. Good luck with your continued learning.
=Format(Fields!yourDate.Va
or something like that for the display format when displayed