any trading day? For example, if in my EFS I need to know the date of the previous trading day of 07/21/2003, which should be 07/18/2003. How can I do it using those functions in eSginal? I tried a program looks like this:
var newDateObject = new Date(2003, 7, 21, 10, 50, 0);
var time = newDateObject.getTime()
var vPriorDay = getPreviousTradingDay(time);
debugPrintln(time);
debugPrintln(getValue("time"));
debugPrintln(vPriorDay.getDay());
However I got error message: Invalid Date Argument in getPreviousTradingDay()
It seems the local time object and the object returned by getValue("time") are of different types. Any idea about how to solve my problem?
Clearpicks
var newDateObject = new Date(2003, 7, 21, 10, 50, 0);
var time = newDateObject.getTime()
var vPriorDay = getPreviousTradingDay(time);
debugPrintln(time);
debugPrintln(getValue("time"));
debugPrintln(vPriorDay.getDay());
However I got error message: Invalid Date Argument in getPreviousTradingDay()
It seems the local time object and the object returned by getValue("time") are of different types. Any idea about how to solve my problem?
Clearpicks
Comment