Tommorows date as a default value on a ASP form field (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


Moody_99 -> Tommorows date as a default value on a ASP form field (3/15/2001 18:06:00)

Hi Everyone

Does anyone here know how to display the current date +1 day.

In other words tommorrows date as a default value in a ASP page form field. The UK format is preferred as DD/MM/YY e.g. 16/03/01

I am also having trouble with validation in the above format. A user can input 123321/12/312 and it with still accept it.

I really appreciate your help.





Spooky -> RE: Tommorows date as a default value on a ASP form field (3/17/2001 20:52:00)

Have a look at :

http://help.activeserverpages.com/iishelp/VBScript/htm/vbs90.htm





Moody_99 -> RE: Tommorows date as a default value on a ASP form field (3/17/2001 20:16:00)

After following the above hyperlink I am only given the following example which adds one month to January 31:

NewDate = DateAdd("m", 1, "31-Jan-95")

But I want to add 1 Day to today's date, which changes everyday. What modification will I need to make?





Spooky -> RE: Tommorows date as a default value on a ASP form field (3/17/2001 20:55:00)

Just above that is the information you need.

"d" stands for days and you would +1 to the number





Moody_99 -> RE: Tommorows date as a default value on a ASP form field (3/17/2001 20:12:00)

Hi Spooky

Thanks. Please could youy check you mail at Spooky@outfront.net. I have sent you few important messages.

thanks again.





Moody_99 -> RE: Tommorows date as a default value on a ASP form field (3/17/2001 20:32:00)

The following code below refers to my date field: So where shall I put the "=DateAdd(d,+1)"


<!--webbot bot="Validation"
S-Display-Name="Arrival Date" S-Data-Type="String" B-Allow-Digits="TRUE"
S-Allow-Other-Chars="/" B-Value-Required="TRUE" I-Minimum-Length="5"
I-Maximum-Length="8" -->
<INPUT NAME="Arr_Date" SIZE=8 value="00/00/01" maxlength="8">





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625