Hi I have been struggling for a long time to convert an oracle 10g datetime field to just a date field in Crystal. Things I have tried.
I put these in a command file because I couldn't change the format of the field at the table level. I also checked the report options to make sure that the date format type was date only (suspect that this only applies to the display and not the underlying data).
No matter what I have tried, if I rightclick the command field it still shows as a datetime field. I need a date field because it is in a subreport that is being used against other date fields/formulas.
Can anyone help?? Thanks Lhuffst
Code:
select to_date(fieldname) as HolidayDate from tablename
select to_Date(Trunc(To_Timestamp(HOLIDAY_DATE, 'yyyy-mm-dd hh24:mi:ss.ff'))) as HolidayDate
from tablename
select trunc(HOLIDAY_DATE) as HolidayDate from tablename
No matter what I have tried, if I rightclick the command field it still shows as a datetime field. I need a date field because it is in a subreport that is being used against other date fields/formulas.
Can anyone help?? Thanks Lhuffst