I saw several posts about this but I have been unable to get any of the suggestions to work. I have the completion date field on a custom report and where there is no completion date filled in for a task it prints 01/01/1899.
I have some code in the detail format event handler:
dt = (System.DateTime)rpt.Fields["CompletionDate"].Value;
if (dt.Year < 1910)
{
((TextBox)rpt.Sections["Detail"].Controls["txtCompletionDate"]).Text = "";
}
Which works fine for other fields but not for this field. Any ideas?