06-12-2007 07:06 AM
06-12-2007 07:32 AM
I normally avoid using datestr exactly to exclude localizazion problems; I do prefer to format my own string for internal purposes when required instead:
#include <windows.h>
char date[32];
SYSTEMTIME dh;
GetLocalTime(&dh);
sprintf (date, "%02d/%02d/%04d", dh.wDay, dh.wMonth, dh.wYear);
You can format your "date" string in the desired format according to your needs. Today's date will be represented as "12/06/2007" with the above code.
06-12-2007 07:35 AM
Hi there,
Wow! That was a quick and effective answer sir.
This is the first time I have used this forum and could not have hoped for a better response.
Many thanks
06-12-2007 08:57 AM
06-12-2007 09:35 AM - edited 06-12-2007 09:35 AM
Message Edited by Roberto Bozzolo on 06-12-2007 04:38 PM