PDA

View Full Version : Definition of new variable called $DATE


Adonis
10th May 2001, 10:31
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);
}

dbareis
11th May 2001, 10:45
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)?

Adonis
15th May 2001, 12:08
You can modify code. so DATE can be appeared as You like.
This Code is Just an Idea