How about this:

Err err;
UInt32 succDate;
DateType dateInfo;
Char dateStr [longDateStrLength];

err = DlkGetSyncInfo (&succDate, NULL, NULL, NULL, NULL, NULL);
if (err == errNone)
{
    DateSecondsToDate (succDate, &dateInfo);
    DateToAscii (dateInfo.months, dateInfo.days, dateInfo.years, 
PrefGetPreference (prefDateFormat), dateStr);
    // "dateStr" now contains, in ASCII form, the date of the last successful 
HotSync.
}

Disclaimer - I haven't tried it myself.

Regards,
Vesselin
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to