Java date issues

Nov 28, 2014

Hi folks, help really appreciated with this.  I have inserted a variable to pick up the system date and I've executed the following java script - note the date is in British format, when it was in American format it worked, now it doesn't? why?  I am not a java user, I don't do coding, I'm not a technical person so an answer in laymans terms would be most appreciated.  Incidentally the only way I can get the date to pull in is if I use the html5 link - which then stops my lovely Print widget from working? is this something I will just have to put up with?

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

Thank you in advance folks.

6 Replies

This discussion is closed. You can start a new discussion or contact Articulate Support.