I need to get the day of the week and I believe that I need to use an action to run JS like this:
var d = new Date();
var n = d.getDay();
which would yield the day of the week for n, e.g. returns a 3 for Wednesday.
Question is how can I get the variable n back into Lectora and assign it a Lectora variable?
If anyone has this tip, I would appreciate it.
var daysOfTheWeek = [“Sunday”,”Monday”,”Tuesday”,”Wednesday”,”Thursday”,”Friday”,”Saturday”];
today = new Date();
This post has received 1 vote up.
This reply was modified 3 years, 1 month ago by Darrel Somoza. Reason: typo