The DecodeDateTime procedure breaks the value specified as the AValue parameter into Year, Month, Day of the month, Hour, Minute, Second, and MilliSecond values and returns these as the AYear, AMonth, ADay, AHour, AMinute, ASecond, and AMilliSecond parameters.
var time: array[0..5] of integer;
begin
time[0]:=yaerof(DateTimePicker1.DateTime);
time[1]:=MonthOf(DateTimePicker1.DateTime);
time[2]:=dayof(DateTimePicker1.DateTime);
time[3]:=HourOf(DateTimePicker1.DateTime);
time[4]:=MinuteOf(DateTimePicker1.DateTime);
time[5]:=SecondOf(DateTimePicker1.DateTime);