Forum Discussion
MiriamKrajewski
12 years agoCommunity Member
Date Format for System Date
Hi there,
I followed the excellent advice and instructions from this thread for inserting a date into my Storyline
http://community.articulate.com/forums/p/12498/74794.aspx#74794 and I'm thril...
DanielRosen1
12 years agoCommunity Member
Hi Miriam,
While researching something for a colleague, I ran across your post. Here's the modified code that will allow you to display the date the way you want:
var currentTime = new Date();
var monthArray = new Array ("January","February","March","April","May","June","July","August","September","October","November","December");
var month = currentTime.getMonth();
var theMonth = monthArray[month];
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var dateString= day + " " + theMonth + " " + year;
var player = GetPlayer();
player.SetVar("SystemDate",dateString);