Question:
I need to convert this fairly simple VBScript to a JavaScript? The purpose of the script is to cause a posted seminar event to disappear after the date of the event has passed. Here is my code:
Answer:
Here’s how I’d do it:
If you're wondering about the way eventDate is initialized (and who could blame you?), it's due to the way JavaScript works with dates. The month is zero-relative, but everything else is one-relative. Intuitive, huh?