Ornstein, Adam wrote:
1. Im using a datetype, and even though the year variable is set to
2004, it always shows up as year 84.
You only have 7 bits to store the year. The bottom 7 bits of 2004 is 84.


supposed to be an unsigned short type, and that the value is supposed
 to be The number of years since 1904. however assigning year the
value of 100 still does not solve the issue.  The year will come up
as 100.
Try adding 1904 to the # of years since 1904.


Im also using the DateToAscii ();  function provided to convert the
date to a character array...

DateToAscii() takes the 4 digit year as the year parameter.


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

Reply via email to