montrof
asked on
Format data in a Parameter
Dates in the database are stored as numbers, such that a date of 12/07/2007 is stored as 20071207 and in crystal shows as 20,071,207. We would like to use a date field in a parameter but want to display as mm/dd/yyyy. We can manipulate the field with a formula field to desired format, but this field is not an allowed option in the value drop down on parameter settings. In essence, can you apply a function to a parameterized value? If not, what is the work around to this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was able to figure it out with your suggestion. Thanks for your help.
When you make your parameter field you can set it's data type and you can select datetime . When you do and when you run the report you will be prompted with a datetime control which includes a calendar and time fields.
Are you decent with SQL? If not, post your table structures and I can help with the command. Also, what kind of database are you using? Oracle? SQL Server? Something else?
Are you decent with SQL? If not, post your table structures and I can help with the command. Also, what kind of database are you using? Oracle? SQL Server? Something else?
ASKER
I got it to work using the date in the parameter but we are using DB2.
Thanks for the help.
Montrof
Thanks for the help.
Montrof
ASKER