I need to display "Not Available" on a date field. Actual_Delivery_Date__c and calculated_actual_delivery_date__c are date fields. So the following code works fine
tempOrderLines[i].calculated_actual_delivery_date__c=tempShipmentLines[i].Actual_Delivery_Date__c;
But I want to calculated_actual_delivery_date__c to have the text value Not Available. I don't want to change the field type from DATE. I don't know if its possible I tried the following:
- tempOrderLines[i].calculated_actual_delivery_date__c="Not Available";
- tempOrderLines[i].calculated_actual_delivery_date__c=date.valueof("Not Available");
- tempOrderLines[i].calculated_actual_delivery_date__c='Not Available';
Is there any way/trick to add string to date?
Thanks.