How can I force Crystal Reports 2008 to convert all DateTime To Date. I use to use Crystal 8.5 and in the Report Options you can select Convert DateTime To Date.
I know the Native Database only tracks Date. If i run the table, it shows only Date values. But like I said, its showing as a DateTime in Field Explorer if I show field type.
There must be something I am missing in the newer version of crystal.
- So it Goes.
0
Answers
now you can play around with date, time & datetime with the format editor. select the style you want to see.
http://www.BiloBeauty.com
http://www.autismspeaks.org
i am trying to set up a parameter field and i want to only use date. but since posting date is a date time field, i cant set it as a date parameter.
i dont understand why crystal wants to see it as a DateTime field when navision is only using it as a date field
makes no sense
Have you tried? does it give you an error?
Perhaps is an odbc setup that's not seeing the field in it's actual type?
I'm not using the newest version so I can't play around with it. I can only suggest places to look.
http://www.BiloBeauty.com
http://www.autismspeaks.org
In your crystal report you need to change your sql statement to
CONVERT("Posting Date", CONVERT(INT, GETDATE()))
This will return the date.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
i dont think there is much of a difference between 2008 and crystal xi
where in the odbc set up would that be, there are not many options there
Not sure if he's using SQL or native.
In my n/odbc setup->options I have Closing Date Support UNCHECKED.
http://www.BiloBeauty.com
http://www.autismspeaks.org
what do you have for your identifiers?
it appears datetime has been a thorn in your side before
http://www.mibuso.com/forum/viewtopic.php?t=22514
I'm trying to download the 30day trial now - see if I get the same thing
http://www.BiloBeauty.com
http://www.autismspeaks.org
but the new version doesnt have the option to convert datetime in report options
pain in the arse!
trying it now, will have to set the time to 00,00,00 since NAV doesnt use that field in the Native Database
in the formula use the function CDATE
CDate (DateTimeField)
this will return a clean date only and use this field to match your parameter field with.
http://www.BiloBeauty.com
http://www.autismspeaks.org
guess i am unclear on how to get the data
i made a paramater ?DateRange then put in the detail of the report the formula @PostingDate (which is a CDate(postingdate))
so that detail looks like this:
@postingdate Document_No.
its taking a bit, I will see what i get on this, but it doesnt look good so far
I am writing the rest of my report, I will post out come and full solution when i get it
"Is equal to" or whatever - then drill into the blank to see the choices - then click the Parameter field
http://savatage99.googlepages.com/Param ... toVariable
@Posting Date is the Formula to clean the datetime field
Enter Date is the Parameter Field
http://www.BiloBeauty.com
http://www.autismspeaks.org
\:D/
thanks!
http://www.BiloBeauty.com
http://www.autismspeaks.org
We just upgraded to 4.0 so, i have to re-write all my reports