Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »


Understanding the details


ScriptMeaning
var oneDay = 1000*60*60*24;The number of milliseconds in a day
var startDateVariable = #someStartDate.value;Object representing the Studytrax variable
var startDate = startDateVariable.value; JavaScript Date object


An example

var startDate = #AEonsetDate.value;
var endDate = #AEendDate.value;
if (!isNull(startDate.value) && !isNull(endDate.value)) {
var AEdays = (endDate - startDate)/oneDay;
}

Output.write("The AE started on " + startDate.toString() + ", and lasted for " + AEdays + " days.");





  • No labels