Archive: Definition of new variable called $DATE


Definition of new variable called DATE
Return instalation date in format MM-DD-YYYY

Just put this code in \exehead\util.c

else if (!strcmp_nstr2(&in,"DATE"))
{
char pad = '-';
GetSystemTime(&st);
wsprintf(out,"%u%c%u%c%u",st.wMonth,pad,st.wDay,pad,st.wYear);
}


HI,

I would guess that you expect this to be the very next request when you made your post, but what about the rest of the World (and from what I gather parts of America) that use DD/MM/YY, why can't it just return the local format (perhaps 12 Aug 2001)?


Just an Idea
You can modify code. so DATE can be appeared as You like.
This Code is Just an Idea