Forum Discussion

ClaireBallan465's avatar
ClaireBallan465
Community Member
8 years ago

Javascript for current time and dates

Hello,

I really need some help. I want to have current dates display on columns in an elearning course that is a software simulation and I need it in different formats. Does anyone know what Javascript I would need to add that would accomplish this? I would like to display date and time in the following formats:

Fri, 1 Dec 17 1334 (using a 24 hour clock and minutes)

01Dec

1 Dec 17 1334

Help would be greatly appreciated. Thank you!

15 Replies

  • Hi, Erica, and welcome to E-Learning Heroes! ✨

    You can test your Javascript output by publishing the .story file for the web, then opening it locally with a browser. You can also choose only to publish a single scene or slide instead:

    Screen Recording 2021-07-09 at 12.28.36 PM

    I hope this helps!