Report printing 01/01/1899 for date

  •  08-08-2007, 1:22 PM

    Report printing 01/01/1899 for date

    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? 

    Filed under:
View Complete Thread

© 2002 - 2007, Axosoft, LLC. All Rights Reserved. | Privacy
Bug Tracking | Defect Tracking Videos | Help Desk Software