HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... "Today" Function
"Today" Function
  View type:
Hi all,

I would like to insert the current date inside a slide, automatically updated.

I suppose this can be done with the javascript action, retrieving system server date.

Any suggestion on how to write this javascript, and include it in the slide ?

Many thanks
Have a nice day
Andrea
 
Hi, Andrea!

Use JAVASCRIPT action with this line inside:

g_arSlideVars["today"] = new Date().toLocaleString();

Now you got CourseLab variable named "today" with data in locale text format. Then you can use it for example in Textbox, which supports text substitution (Simple or Relief). I.e. {{#today}} will be substituted by date.
Subject:
Message options
No additional options