Forum Discussion
TinaDenmark-558
8 months agoCommunity Member
Convert systemDate to static txt
I created a variable, systemDate, using JavaScript to display the completion date on a certicate. However, the date changes when the certificate is revisited.
Does anyone know how I can conver...
TinaDenmark-558
8 months agoCommunity Member
I thought the copies were attached. I just attached them now.
The variable is blank and is generated via a JavaScript:
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);