TimGetSeconds() returns the current date in seconds after 1904.  See the
Time Manager documentation in Part II, System Management section of the
PalmOS Programmer's API Reference for additonal routines to convert various
date/time representations.

To have the user select a date a date, you should consider using the
system's date picker.  See the Date and Time Selector section  in Part I,
User Interface section of the above mentions API reference.

If you don't have the PalmOS documentation, it is available as part of the
SDK (software developement kit), freely downloadable from our website:

http://www.palmos.com/cgi-bin/sdk40.cgi

Hope this helps,
-bob mckenzie, Palm PDX

-----Original Message-----
From: Jim Hoeger [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 7:13 AM
To: Palm Developer Forum
Subject: Simple Stupid Question re: system date


Hi,
I've never programmed anything in "C" before (a visual basic kind of guy,
but I want to use CodeWarrior), but I am forced to write a program for my
main customer in less than 30 days.  I've downloaded and read literally
thousands of pages of documents, bought 2 books and still don't have a clue
as to what I'm doing.  I promise I won't post dumb questions if I can find
the answer elsewhere, but please give me a bone.
I want to start out with an editable textbox on my form where I place
today's date (mm/dd/yy), and allow the user to change it to another date
(contract start date).  I then want to add 30 days to that date and display
the first payment date (in another field).
I can't find anything on getting and using the system date.  It's out there
somewhere, but I admit that I'm so new that I might not know the right
question.  I've downloaded day.h and selday.h, looked at the knowledge base
etc, but can't find the answer (or don't recognize it).

Help me if you feel sorry for someone starting out (like you all did at one
time).  Point me in the direction if you want, give me a sample if you
would, but my deadline is looming near and the Palm OS is very unfriendly.

Thanks in advance,

JimH



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

-- 
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