Delphi 5 TDateTimePicker Format

During add Delphi 5 compatibility to the Purchase Order calculation sample of HotXLS Delphi Excel Spreadsheet component, an error occurred while compiling under Delphi 5.

The line which set the date format of the TDateTimePicker control does not compile:

DateTimePicker.Format := ‘MM/dd/yyyy’;

TDateTimePicker control of Delphi is a wrapper around a Microsoft control.

Continue Reading …