Date Javascript

Feb 04, 2021

I have used the code below to insert the date into a presentation, having changed to SL3 the code no longer seems to work:

var d = new Date();
var datestring = d.getDate() + "-" + (d.getMonth()+1) + "-" + d.getFullYear();
player.SetVar ("Date",datestring);

Any ideas please!!

 

3 Replies