>Hello!
>
>Can someone help me with these 2 lines of code?? It's driving me nuts!
>
>    DateType   date;
>
>    // Determine today's date
>    DateSecondsToDate (TimGetSeconds(), &date);
>
>I personally don't see what's wrong with this code, but it always returns me
>the wrong date. What's the catch?
>
>Regards,
>Gee.
>
>
>
>--
>For information on using the Palm Developer Forums, or to 
>unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/

Remember, years in DateType structures are from 1904, NOT 1900, so 
try adding 4 to the year.


Ben


+--------------------------------------------+
Ben Gottlieb                           Stand Alone, Inc.
v: 773-477-2492                 f: 773-477-2579
[EMAIL PROTECTED]              www.standalone.com
+--------------------------------------------+
    Best Application: Control Bar (PalmSource '99)

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

Reply via email to