Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "comparing dates" Watch "comparing dates" New topic
Author

comparing dates

akshaj nampelly
Greenhorn

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.

Akshaj
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: http://aspose.com/file-tools
 
subject: comparing dates
 
Similar Threads
comparision between two dates
Problem with javascript dates
comparing dates
Calendar problem
FAQ - Everything you ever wanted to know about dates