GetSimulationDateTime
Function
Date GetSimulationDateTime()
Parameters
None
Return Value
A Date object that represents the current simulation time
Example
var currentDate = GetSimulationDateTime();
var date = currentDate.getDate();
var month = currentDate.getMonth(); //Be careful! January is 0 not 1
var year = currentDate.getFullYear();
LogInfo("Get simulation date object = " + date + " | " + month + " | " + year);