Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
Beginning Java
compare date in jsp
Dhirender Kumar
Greenhorn
Posts: 3
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i am retrive two date from first
JSP
page to second JSP page using request.getParameter method in date1 and date2 variable.
i want to compare date1 and date2.
example:-
if (date1 > date2 )
{
out.print("date1");
}
else
{
out.print("date2");
}
Pls help
Ben Souther
Sheriff
Posts: 13411
I like...
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This is really a
Java
in General (Beginner) question but here goes...
Take a look at the GregorianCalendar Class:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/GregorianCalendar.html
It has a (int year, int month, int dayOfMonth) constructor and implements Comparable.
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Current Date Comparison
displaying ArrayList results in jsp page
How to get past date ?
Problem in Comparing Values; 7>14 returns true????
How to Compare two Calendar Objects.
More...