10 Replies
Matthew Bibby

Hi Melissa,

As well as adding the variable Michael mentioned above, try adding a semi colon to the end of each line as shown below:

var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var dateString=month + "/" + day + "/" + year;
var player = GetPlayer();
player.SetVar("SystemDate",dateString);