This topic is locked

Date compare...

7/14/2008 5:50:12 PM
PHPRunner General questions
I
indigo author

Hi I have two fields.. startdate and enddate.

End Date should be equal to startdate by default or Enddate can be after startdate.
I want a control which will popup an error. But this should be at the same time when data is changed (something like onchange event...) I am not looking for BeforeAdd event as the whole form has to be filled.
Is it possible to do this?

J
Jane 7/15/2008

Hi,
use onchange event on this page:

http://www.asprunner.com/forums/index.php?showtopic=6504

Compare two dates and show error message if needed.
Here are some helpful links with JavaScript functions:

http://www.w3schools.com/js/default.asp

http://www.quackit.com/javascript/javascri...e_functions.cfm