Forum Discussion
VanessaWylie
9 years agoCommunity Member
How to insert current date variable into a "customised certificate slide".
Hi there,
I have created a certificate looking slide at the end of my course. I have added in variables for the learners name, their score achieved, I am just missing the date variable to be popul...
WaltHamilton
4 years agoSuper Hero
Use Matthew's code.
If you mean print year day month, change this line:
var date= dd+' '+m_names[mm]+', '+yyyy
to this:
var date= yyyy+' '+dd+' '+m_names[mm]
or year month day, change it to:
var date= yyyy+' '+m_names[mm]+', '+dd
If you want print the year before this year, change this line:
var yyyy = today.getFullYear();
to this:
var yyyy = today.getFullYear()-1;