Mark,
They are both pascal records defined in \Lib\PalmOS\DateTime.pas
Code:
DateTimeType = record
second: Int16;
minute: Int16;
hour: Int16;
day: Int16;
month: Int16;
year: Int16;
weekDay: Int16; // Days since Sunday (0 to 6)
end;
DateType is a record containing only a 16 bit value
Code:
DateType = record
Bits: UInt16;
end;
The bits are used as follows (left hand is most significant bit)
1111111000000000 7 bits year
0000000111100000 4 bits month
0000000000011111 5 bits day
In \PSL\PSUtils.pas you will find the functions
Code:
function Year(Date: DateType): UInt16;
function Month(Date: DateType): UInt8;
function Day(Date: DateType): UInt8;
to extract the components.
Hope that helps.