function GetCurrentDateMMDDYYYY()
{
var dSysTime = Clib.time();
var dTime = Date.fromSystem(dSysTime);
var sYYYY, sMM, sDD;
sYYYY = ToString(dTime.getFullYear());
sMM = ToString(dTime.getMonth() + 1);
if (sMM.length == 1)
{
sMM = "0" + sMM;
}
sDD = ToString(dTime.getDate());
if (sDD.length == 1)
{
sDD = "0" + sDD;
}
return (sMM + "/" + sDD + "/" + sYYYY);
}
--------------------------------------------------------
function GetCurrentDateYYMM()
{
var dSysTime = Clib.time();
var dTime = Date.fromSystem(dSysTime);
var sYYYY, sMM, sDD, sYY;
sYYYY = ToString(dTime.getFullYear());
sMM = ToString(dTime.getMonth() + 1);
if (sMM.length == 1)
{
sMM = "0" + sMM;
}
sDD = ToString(dTime.getDate());
if (sDD.length == 1)
{
sDD = "0" + sDD;
}
sYY = sYYYY.substring(2,4);
return (sYY + sMM);
}
{
var dSysTime = Clib.time();
var dTime = Date.fromSystem(dSysTime);
var sYYYY, sMM, sDD;
sYYYY = ToString(dTime.getFullYear());
sMM = ToString(dTime.getMonth() + 1);
if (sMM.length == 1)
{
sMM = "0" + sMM;
}
sDD = ToString(dTime.getDate());
if (sDD.length == 1)
{
sDD = "0" + sDD;
}
return (sMM + "/" + sDD + "/" + sYYYY);
}
--------------------------------------------------------
function GetCurrentDateYYMM()
{
var dSysTime = Clib.time();
var dTime = Date.fromSystem(dSysTime);
var sYYYY, sMM, sDD, sYY;
sYYYY = ToString(dTime.getFullYear());
sMM = ToString(dTime.getMonth() + 1);
if (sMM.length == 1)
{
sMM = "0" + sMM;
}
sDD = ToString(dTime.getDate());
if (sDD.length == 1)
{
sDD = "0" + sDD;
}
sYY = sYYYY.substring(2,4);
return (sYY + sMM);
}
Comments
Post a Comment