the attached component replaces the standard TDateTimePicker of Delphi.
I added property
FirstDayOfWeek: integer
which has the standard value 1 (Sunday).
When the value is 1, the calendar should be drawn as it is now, i.e. with the week starting at Sunday and ending at Saturday (please see [login to view URL]).
However, when the value is set to a different value, the week should be drawn differently.
In particular, when FirstDayOfWeek is set to 2 (Monday), as it is used in Italy, the calendar should be drawn with the week starting at Monday (please see [login to view URL])
Of course changes will be needed to the rest of the code so that the behaviour of the component is the one expected (the selected date should be correctly recognized, etc)
The component can be used in Delphi 5 and should stay that way.
Be sure to sign all the code lines you change or add or delete.