In managing Employee records, a termination date is only used when the Employee leaves the organization. How can I display and test for a blank date in the TTMSFNCDatePicker used to enter the Termination Date? I've tried setting the SelectedDate property to zero, which does display a blank value, but when testing the value of the SelectedDate property later in code, it contains some other date (usually the Design Time value of the property).
You can use this to clear and initialize a null:
TMSFNCDatePicker1.AllowNumericNullValue := True; TMSFNCDatePicker1.Clear; TMSFNCDatePicker1.SelectedDate := 0;
Then the SelectedDate property should return 0 when requested.