-3

Certain date into DateTimePicker (Pascal)

How to add a certain and specific date into DateTimePicker in the Pascal/Lazarus ?

Ken White
  • 123,280
  • 14
  • 225
  • 444
Olek
  • 1

1 Answers1

1

Delphi's TDateTimePicker and FPC's TDateTimePicker both have Date and DateTime properties, which you can set to a specific date, eg:

DateTimePicker1.Date := EncodeDate(1991, 1, 1);
Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770