navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Tommorows date as a default value on a ASP form field

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Tommorows date as a default value on a ASP form field
Page: [1]
 
Moody_99

 

Posts: 15
From: Slough, Berks, United Kingdom
Status: offline

 
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

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
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


(in reply to Moody_99)
Moody_99

 

Posts: 15
From: Slough, Berks, United Kingdom
Status: offline

 
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?


(in reply to Moody_99)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
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


(in reply to Moody_99)
Moody_99

 

Posts: 15
From: Slough, Berks, United Kingdom
Status: offline

 
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.


(in reply to Moody_99)
Moody_99

 

Posts: 15
From: Slough, Berks, United Kingdom
Status: offline

 
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">


(in reply to Moody_99)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Tommorows date as a default value on a ASP form field
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts