Forum Discussion
Bjarne
11 years agoCommunity Member
Scorm 1.2 LMS communication and feedback using javascript and lmsAPI
Dear community,
I'm testing LMS (scorm 1.2) integration, using the sample story attached. I'm fetching the students name from the LMS using the few lines of javascript below, as sampled elsewhere...
VishalSaxena-b7
Community Member
Is there any lmsAPI to get the Current Date or Registered date. I want to capture date when the user registered for that particular WBT on LMS.
JamesMartin-49f
2 years agoCommunity Member
This is an old thread, and I'm sure you've found a solution. But, for the benefit of others, you can always pull the current date from the JS Date() object. Here's a line I use in a Storyline project. I'm converting it to US format, but you can sub the language code for whatever you like.
const todaysDate = (new Date()).toLocaleDateString('en-US');
In the rest of your Storyline project, you can now pull the date from the constant, todaysDate.
Here are some references for language codes: