Adding Oracle Number and Date types for dynamic display
Hi,
In a nutshell, I am adding the warranty period called Warranty_days retreived as a "Number" data type from Oracle and adding it to
a Date called Purchase_Date which is stored as a DATE datatype in the format dd-mon-yy in Oracle.
Typical data might be: Warranty_days (30, 60 ,90, 180, etc) Purchase_date (01-JUN-09, 24-AUG-09, etc.)
I attempted to add and display as part of a table like this:
<td width="114" class="style1"><span class="style1">#Warranty_Results.Warranty_Days + Warranty_Results.Purchase_Date#</span></td>
Which results in a number. I beleive this number actually represents a date, but cannot cast it to the 23-JUN-09 format as part of dynamic text in the table.
Originally, I had this working off an Access database using DATEFORMAT: #DateFormat( DateAdd("d", Warranty_Results.Warranty_Days, Warranty_Results.Purchase_Date), "mm-dd-yyyy")#
But you can't use DATEFORMAT with Oracle. Any ideas?
