HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... current date
current date
  View type:
Is there a way to insert the current date onto a page?
 
Probably have to use a javascript call for that. Unfortunately you won't get the whole date in one go, you will need to ask for the day month and year as seperate variables then cencenate them together.
So you'd...
1. define a variable called day
2. have a script event get the day in the form of.. myvariable=currentTime.getDate()
3. repeat for the year "currentTime.getFullYear()"
and month "currentTime.getMonth() + 1"
NOTE: Javacounts january as 0 so we need a plus 1 to get the 'real' month.
4. then join up the variables "month + "/" + day + "/" + year" into a final date holding variable.
Subject:
Message options
No additional options