On Friday 06 August 2004 08:51 am, Chris Hall wrote:

> Does anyone have a code sample of how to extract the system date and find
> out what day of the week it is?

DateTimeType dt;
UInt16 dow;

TimSecondsToDateTime(TimGetSeconds(), &dt);
dow = DayOfWeek(dt.month, dt.day, dt.year);

-- 
/* Chris Faherty <[EMAIL PROTECTED]> */

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

Reply via email to