 |
| Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

October 25th, 2004, 06:02 AM
|
|
Authorized User
|
|
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Future Date Validation
<center> Hi all ,
I just wandering how can we validate the Date to todays date or Futuer date??? </center>
Cuty
__________________
~*Cuty*~
|
|

October 25th, 2004, 07:00 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hi Cuty,
Need more information specific to your requirement, to understand what you are trying to achieve.
Cheers!
_________________________
- Vijay G
Strive for Perfection
|
|

October 25th, 2004, 06:05 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
Cuty
Not sure if this is what you are after, this will validate some date against todays date:
dim datevar,someOtherdateVar
datevar = "25/10/2004"
someOtherdateVar = date()
if cDate(dateVar) = cdate(someOtherdateVar) then
response.write "is equal to"
else
response.write "is not equal to"
end if
Change 'someOtherdatevar' to a future date, it will then vaidate against that date.
Wind is your friend
Matt
|
|

October 25th, 2004, 11:39 PM
|
|
Authorized User
|
|
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Happy GV
hmmmmmmm.... I want a code for JAVA ... and I validated the Date Format .. I just want to know how to validate it to the present and future date ...
Mat41
I think this is a JavaScript Code it doesn't work with me ... any way .. Thanxx a lot dude
Cuty
|
|

October 26th, 2004, 12:02 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hi Cuty,
Quote:
|
quote:how to validate it to the present and future date
|
Can you explain what you mean by this?
I am not sure if you wanted code for JAVA or Javascript? If JAVA, post that on a JAVA forum.
Matt's code was in VBScript, not the Javascript code.
Cheers!
_________________________
- Vijay G
Strive for Perfection
|
|

October 26th, 2004, 12:09 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
Cuty
;;;I think this is a JavaScript Code it doesn't work with me ... any way .. Thanxx a lot dude
No not Javascript, its VBScript. This is the classic ASP area of the forum you are looking in the wrong place if you are after JAVA.
Wind is your friend
Matt
|
|

October 26th, 2004, 02:00 AM
|
|
Authorized User
|
|
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ekekkekek
Sorry, I am new here
Cuty
|
|

October 26th, 2004, 02:05 AM
|
|
Authorized User
|
|
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok then tell me where I have to go
Cuty
|
|

October 26th, 2004, 02:15 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Go here - Java Forum
Cheers!
_________________________
- Vijay G
Strive for Perfection
|
|

October 26th, 2004, 02:25 AM
|
|
Authorized User
|
|
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you dear ^_^
Cuty
|
|
 |