PureBytes Links
Trading Reference Links
|
And safe. Never leaves a year value below 1900 even if the date is
incorrect. Could prevent possible "divide-by-zero" or string
construction errors when data is used in other calculations.
dbs
<<<
or even easier...
{
Function: mo_da_yyyr
returns a string in the form mm/dd/yyyy
}
var: yy(0);
yy = year(date) + 1900;
mo_da_yyyr =
numtostr(month(date),0) + "/" +
numtostr(dayofmonth(date),0) + "/" +
numtostr(yy,0);
--
Dennis
>>>
|