Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Dynamic Content
Expertise: Beginner
Aug 10, 2000



Application Security Testing: An Integral Part of DevOps

Converting VBScript to JavaScript

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:

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?
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date