CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Date Mates

Print topic Send  topic

Author Message
Marilyn Miers
Posted: 03/22/2002, 10:44 PM

Is there any way to compare dates?

I have two fields - startdate, enddate.
both are oracle dates.
How do I use any javascript/jsp scripting to ensure that the startdate is
earlier than the
enddate and have a validation error message appear?
I'm using JSP.


Yours,
Ler Ping


RonB
Posted: 03/23/2002, 3:45 AM


"Marilyn Miers" <mimaclit69@hotmail.com> schreef in bericht
news:a7h889$tp$1@news.codecharge.com...
> Is there any way to compare dates?
>
> I have two fields - startdate, enddate.
> both are oracle dates.
> How do I use any javascript/jsp scripting to ensure that the startdate is
> earlier than the
> enddate and have a validation error message appear?
> I'm using JSP.
>
>
> Yours,
> Ler Ping
>
>
>
Build a constraint in oracle for that table that specifies startdate has to
be < then enddate
you have to ad to the column: alter table_name ad constraint m_startend_chk
check(startdate<enddate)

Let the database do the work


   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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