Forum Discussion
How to insert current date variable into a "customised certificate slide".
Got a challenge for you...
Can you do this system date code plus three days?
I am needing "today's" date to be displayed, plus the date 3 days after "today's"
Is this possible?
- LaraBeltran-6c03 years agoCommunity Member
I have the same problem right now. I hope there was an answer for this.
- LaraBeltran-6c03 years agoCommunity Member
I have the same problem right now. I hope there was an answer for this.
- DuaneStitt-84712 years agoCommunity Member
Thank you, Chat GPT. Here is the javascript for showing the date three days in the future.
var m_names = new Array("January", "February", "March",
"April", "May", "June", "July", "August", "September",
"October", "November", "December");
var today = new Date();
today.setDate(today.getDate() + 3); // Add three days
var dd = today.getDate();
var mm = today.getMonth();
var yyyy = today.getFullYear();
if (dd < 10) { dd = '0' + dd; }
var date = m_names[mm] + ' ' + dd + ', ' + yyyy;var player = GetPlayer();
player.SetVar("SystemDate", date);- StevenBenassi2 years agoStaff
Hi Duane!
I just wanted to pop in and share that since this discussion is a bit older, Lara may no longer be subscribed.
If you want to reach out to them directly, you can do so by clicking on their name and selecting the 'Contact Me' button.
Have a great rest of your week!