Curtis_Scoville <[EMAIL PROTECTED]> wrote in message
news:13013@palm-dev-forum...
DateTimeType dateTime;
DateTimeType theDATE;
Char dateString[dateStringLength];
TimSecondsToDateTime(TimGetSeconds(),&dateTime);
theDATE.month=dateTime.month;
theDATE.day=dateTime.day;
theDATE.year=dateTime.year;
// prep the select day function w/current date
DateToAscii(theDATE.month, theDATE.day, theDATE.year, dfMDYWithSlashes,
dateString);
// draw the picker
SelectDay(selectDayByDay, &theDATE.month, &theDATE.day, &theDATE.year, "Date
for ...");
// convert to an ascii string here's the user pref you
want -----_______________
DateToAscii(theDATE.month, theDATE.day, theDATE.year, dfMDYWithSlashes,
dateString);
// a wrapper to drop the date string into a field
SetFieldTextFromStr(FieldID#, dateString);
// or copy the string into a struct...
StrCopy(Struct.Date, dateString);
handled = true;
break;
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/