DateTime format.

I have a small part of my code that outputs a date/time string as this:
Thu Feb 12 09:05:52 2009

I do this using this code:
...
time (&rawtime);
timeinfo = localtime(&rawtime);
strcat (A1,asctime(timeinfo));
...

I've been asked by the people who see this output if it can be changed to:
YYMMDD hh:mm

Is this possible with a function?

If someone could point me in the right direction to do this, I would appreciate it immensely.
Thanks.
Not without using a library or manipulating it yourself.
http://www.cplusplus.com/reference/clibrary/ctime/asctime.html
Topic archived. No new replies allowed.