Display or hide information based on date- JavaScript and Variables?

Hello Community Members!

I'm working on a project where I'd like to display or hide text based on the date. For example, learners can enroll in webinars through the SL2 eLearning and I'd like to hide the dates that have already passed. I'm thinking I should be able to use a combination of variables and JavaScript to get the system date and hide or show items based on that but I've never worked with JavaScript before.

Any thoughts?

2 Replies