i want today's date in day/month/year example 06-06-2007.
month should in integer number
how can i do this
i tried "asctime" but in tht month is in string.
thank u ,
sree
i want today's date in day/month/year example 06-06-2007.
month should in integer number
how can i do this
i tried "asctime" but in tht month is in string.
thank u ,
sree
Look at the other functions in <time.h>.
http://www.open-std.org/jtc1/sc22/wg...docs/n1124.pdf
Notably, time and localtime.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Use strftime() for complete control over how each time component is shown.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
thank u for ur reply can u show me any example .
iam little bit confused onstrftime().
thank u
Last edited by Dave_Sinkula; 06-05-2007 at 11:36 PM. Reason: Probably to late to say, "Oh, wait."
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
thank u its' working finee