Forums

ASP

This topic is locked

Date Manipulation on Form text fields

Posted 29 Oct 2003 20:17:41
1
has voted
29 Oct 2003 20:17:41 Rafael Alvarez posted:
I have 3 text fields on a form, and the idea is to get the difference between two entered dates before transfer information to database.

FieldOne can get Date from a Popup Calendar or typed by user (FROM Value)
FieldTwo works the same way FieldOne Does, getting a second date value (TO Value).
Field Three has to get the difference. Number of days from One to Two (STAY Value).

By default, FieldOne gets current date from Date(), and second and third fields are empty.

I need to set a suggested date for FieldTwo, when FieldOne change. (FieldOne OnChange = FieldTwo.Value = FieldOne.Value + X) and FieldThree.Value = X.

Also, if user change the suggested date value for FieldTwo, I have to set FieldTwo OnChange = FieldThree.value = (FieldTwo.Value – FieldOne.Value)

Any Idea will be really appreciated.

Tks <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Reply to this topic