Forums

This topic is locked

DateDiff Function will not return value

Posted 24 Feb 2012 03:17:38
1
has voted
24 Feb 2012 03:17:38 Chuck Busch posted:
I cannot get the following function to return a value

function fdate(form) {

d=eval(form.today_date.value);
e=eval(form.closing_date.value);
fday_calc=DateDiff("d", "02/01/2012", "02/05/2012";

}

This should produce a value of 5 for fday_calc, but it produces nothing.

Help

Reply to this topic