Wrox Programmer Forums
|
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
 
Old October 25th, 2004, 06:02 AM
Authorized User
 
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cute Designer
Default Future Date Validation

<center>Hi all,

I just wandering how can we validate the Date to todays date or Futuer date
??? </center>

Cuty
__________________
~*Cuty*~
 
Old October 25th, 2004, 07:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Cuty,

Need more information specific to your requirement, to understand what you are trying to achieve.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old October 25th, 2004, 06:05 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
 
Old October 25th, 2004, 11:39 PM
Authorized User
 
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cute Designer
Default

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
 
Old October 26th, 2004, 12:02 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old October 26th, 2004, 12:09 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
 
Old October 26th, 2004, 02:00 AM
Authorized User
 
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cute Designer
Default

ekekkekek

Sorry, I am new here

Cuty
 
Old October 26th, 2004, 02:05 AM
Authorized User
 
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cute Designer
Default

Ok then tell me where I have to go

Cuty
 
Old October 26th, 2004, 02:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Go here - Java Forum

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old October 26th, 2004, 02:25 AM
Authorized User
 
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Cute Designer
Default

Thank you dear ^_^

Cuty





Similar Threads
Thread Thread Starter Forum Replies Last Post
Validating future date skev Infopath 0 October 2nd, 2007 04:17 AM
Date validation vacak Struts 0 November 21st, 2006 12:11 PM
How to Validate a Date for present and Future Cute Designer J2EE 1 November 9th, 2004 10:45 PM
Date Validation zaeem Classic ASP Basics 7 October 25th, 2004 11:54 PM
Date validation Raul Javascript 4 February 25th, 2004 04:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.