I would like to know how to change a label’s caption when the user chooses a particular date from the TDateTimePicker component.
Say for example:
If 06/02/2012 was marked on the TDateTimePicker component, label1’s caption would become ‘Hello World’ otherwise nothing would happen if it was any other date.
You need to write an
OnChangeevent handler for the date time picker. You will also need to make sure that this event handler is run when the form first shows: