This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Struts and the fly likes comparing dates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "comparing dates" Watch "comparing dates" New topic

comparing dates

akshaj nampelly

Joined: May 18, 2005
Posts: 18
I have two dates A and B on a form. Date A is displayed while I entering date B. If date B is prior to date A, it has to show valid error message when I submit the page. I want to use <logic> tag for this comparison and error message. How to go about it? Code snippet is appreciated.

Sajan Patel
Ranch Hand

Joined: Oct 25, 2004
Posts: 77
On Submit you can call JAVAScript and in Java script you can do all comparing.
I agree. Here's the link:
subject: comparing dates
It's not a secret anymore!