Using Javascript to display altered day/date in MM/DD/YYYY Format

Hello everyone,

I’m trying to get Captivate 2019 to display the day and date but with an increment/decrement to the day/date.

I found a previous post where a user was able to successfully do this; however, it formats the date in DD/MM/YYYY format. I have never used JavaScript before and cannot figure out how to change the formatting to be MM/DD/YYYY.

Below is the extra code in standard.js followed by the simple script used to manipulate the date.  The result will be outputted as a variable so I can display it in a text caption.

Can anyone help with the formatting to have it shown in a US date format?

Thanks!

…………………………………………………………………………………………………………………………………..

Read the full story by

Tags:

RELATED READS
Bookmarking not working in Success Factors Learning How to Create a Virtual Classroom: the Instructive Virtues of Virtual
We are updating our Privacy Policy, so please make sure you take a minute to review it. As of May 25, 2018 your continued use of our services will be subject to this new Privacy Policy.
Review Privacy Policy OK