Symptom
How can we get the current time for an event when reviewing console?
Environment
SAP Analytic Cloud
Resolution
The following code when added to and object will note the time in the console log.
var currentDate = new Date();
var currentTime = currentDate.toLocaleTimeString();
var timeText = "Time of event Start is " + currentTime;
console.log(timeText);
//other code
var EndcurrentDate = new Date();
var EndcurrentTime = EndcurrentDate.toLocaleTimeString();
var EndtimeText = "Time of event Finish is " + EndcurrentTime;
console.log(EndtimeText);
See Also
Keywords
timestamp; console logging; how to log time; time stamp , KBA , LOD-ANA-AD , Analytics Designer , LOD-ANA-UNS , SAC Unified Story (Story 2.0) main component. , How To