How to set up a SystemDate Variable in Storyline?

Hi, can someoen please take me to the short video tutorial that shows how to set up a SystemDate Variable (text variable) and a trigger (Execute Javascript) that runs at the beginning of the slide (when timeline starts) in Storyline?  I have seen it before somewhere in the Articulate Community site and I cannot seem to find it now. What I am trying to do is display the current date on the certificate of a course by using the Java script below.  Thanks in advance for your help!

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();


1 Reply