Using Java script for Times

Sep 23, 2016

Hi everyone,

I am trying to place a variable in a course that returns the system time like "9:57 AM"

Then I want to use that same variable to add one hour to the current system time. So it would read "10:57 AM".

I am having a hard time getting the date to remove the "9/23/2016" and sometimes the time will show "9:9" if in the morning and then "21:9"  I can't seem to get AM or PM and it removes the 0 from the 9:09 PM time.

 

ANY HELP??  Thank you!

1 Reply

This discussion is closed. You can start a new discussion or contact Articulate Support.