Forum Discussion
HannahKingston
4 years agoCommunity Member
Date Stamp on Results slide
Hi I am fairly new to storyline 360 and was wondering if someone might be able to help me.
I am looking to add a date stamp that appears on the results slide, so that if asked for a screenshot, we...
RichardWatson
4 years agoSuper Hero
Hannah,
Give this a try. I am not a Javascript expert but this appears to work in Mozilla, Edge, and Google Chrome.
Javascript experts out there (Walt, Matthew). if there is a better way or more appropriate way please chime on.
Note: This is set to 'en-us' in toLocaleTimeString
var options = {weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false };
var date = 'Assessment completed on ' + new Date().toLocaleTimeString('en-us', options);
var player = GetPlayer();
player.SetVar("SystemDate",date);
Related Content
- 10 years ago
- 5 months ago