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...
MarioTaplin-187
4 years agoCommunity Member
Hello all,
I'm in need of serious help with this. I have a certificate of completion that reads as follows:
On this 1st day of December, 2020, John Doe has been certified....
I know I have to use a separate JS code for the date, month, and year but I'm having trouble formatting everything. Can someone let me know the JS code for the date? Then the month, then the year? I tried using the code below but I need each one formatted separately. Any help will be greatly appreciated.
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);