"TOMERDR" <to*****@hotmail.com> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
Hi,
I am creating a simple calander application,
user can enter a date,and i will create a calender for the month which
contain the date
which is the function that get the month part of a date?
which is the function to get the days for a month?
Thanks in advance
It all depends on how you allow the users to enter the date. There are
various possible formats. For example (in the US), "09/27/06",
"09/27/2006", "Sept. 27, 2006", "September 27, 2006", and "27 Sep 2006" are
all ways to specify the 27th of September of this year. I believe there are
some functions in time.h which might help (but I don't know them
personally). Various functions might also be provided by your operating
system or compiler. Or you could write your own "parser" to break the
string into its parts, either according to rules you specify or according to
some kind of format string such as that which printf uses. It's really up
to you. If you need more help, you'll need to be more specific.
-Howard