i am not sure (because you didn't wrote), but to me it seems you can be using
ultralite....
so use this to convert its sqldatetime to ascii
char buffer[dateStringLength+1];
sqldatetime *dec;
DateToAscii(dec->month+1,dec->day,dec->year,dfDMYWithSlashes, buffer);
and this to convert it to DateTimeType
DateTimeType *dtt;
sqldatetime *dec;
dtt->second=dec->second;
dtt->minute=dec->minute;
dtt->hour=dec->hour;
dtt->day=dec->day;
dtt->month=(short)(dec->month+1);
dtt->year=(short)(dec->year);
dtt->weekDay=dec->day_of_week;
rci_ind wrote:
> Hello All,
>
> I have dowloaded a datetime coloum from consolidate DB.i want to convert this
value to a value that is displayable in the Palm dateselect trigger.
>
> datetime(SQL)-> variable-> either seconds or days or date with slahes.
>
> Pls suggest a way to achive this,
> Regards,
> Srini
>
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/