Click Here To Get Amazing Facebook Profile Covers,Status Messages

The operator < is undefined for the argument type(s) java.util.Date, java.util.Date

1 reply [Last post]
angel's picture
angel
User offline. Last seen 2 years 39 weeks ago. Offline
Joined: 08/22/2009

i wanted to compare two dates in JSP using operator <

but it throws an exception The operator < is undefined for the argument type(s) java.util.Date, java.util.Date


rajesh's picture
rajesh
User offline. Last seen 12 weeks 6 days ago. Offline
Joined: 08/17/2009
Use compareTo method of java.util.Date

Use compareTo,after,beforea and equals methods of java.util.Date in order to compare two dates in JSP.
http://www.inditektalk.com/blog/how-to-compare-two-dates-jsp