Author Topic: Date?  (Read 1457 times)

How can I get the system date using Torque?


getDateTime();

Can't be bothered to try find date by itself.

EDIT: Ok i've been really realy cheap, so here is my really really cheap method to find the date by itself

Code: [Select]
function getDate()
{
%datetime= getDateTime();
%parsepos = strstr(getDateTime()," ");
%timesingular= getSubStr(getDateTime(),%parsepos,999);
%datesingular= strReplace(%datetime,%timesingular,"");
return %datesingular;
}

PS: I know I didn't have to do the strstr, but its better to be safe than sorry :P
« Last Edit: April 14, 2007, 12:22:57 PM by Terror »

You have a date in the clock in the lower-right corner of the screen. I'm assuming you'd need it ingame, like for a callender or whatnot.

Perhaps a chat logger?