How to pass date comparison searchspec in escript
Hi all,
We have a requirement that query a date field of one bc, the condition is like [date]>= date_val1 - 5;, date_val is the value of another date type filed in another bc. See below details in script.
As I understand we need convert the date_val to a date object, but I cannot find a good way. it always pops up error, i tried new date(date_val), but it returns the mili secs.
Please share your knowledge and experience.
function GetStartTime()
{
var sBO = TheApplication().GetBusObject("Server Batch Job");
var sBC = sBO.GetBusComp("Repeating Batch Job Instance");