CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 date range validation help needed

Print topic Send  topic

Author Message
Mike Singleton
Posted: 04/25/2003, 7:18 AM

How would I ensure that the start_date field is greater than the end_date? I am using the default date_picker control to allow the user to select. Some validation rule I suppose?
Gilles Sarazin
Posted: 05/06/2003, 12:21 PM

You can use the events tab On Validate function and add custom code. The code I added for my app is below:

if Neighbrhood_Events.Date_Of_Event.value < date then Neighbrhood_Events.errors.addError("The Event date cannot be less than today")

also

if Neighbrhood_Events.Expire_date.value <= Neighbrhood_Events.Date_Of_Event.value then Neighbrhood_Events.Errors.addError("The Expire Date must be greater than Event Date")

Hope this helps.
Gilles

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.