Date Difference in JavaScript

Mindwatering Incorporated

Author: Tripp W Black

Created: 03/25/2008 at 02:11 PM


Notes Developer Tips
JavaScript, Navigators

The JavaScript/JS code below contains a function which is passed a field's value.
It creates date objects for both the passed date and today. It then computes the difference between the two dates.

previous page