wood burning stoves*
The moose likes Beginning Java and the fly likes Is Date Between Two Dates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is Date Between Two Dates" Watch "Is Date Between Two Dates" New topic
Author

Is Date Between Two Dates

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
I have searched the web and have not found a good way to check and see if a given date is equal to or between two dates. Please help.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3412
    
  12
Did you look at the Date class ?


Joanne
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
You'll have to write it.
I'd suggest Calendar over Date, but either will do.

If the time of day for your Date/Calendar is set to zero, then it is of course a trivial exercise.

Try it, let us know how it goes.


Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is Date Between Two Dates
 
Similar Threads
Displaying tha Date between two dates in paint method...
Extracting months from Date object data
Generating a list of dates from a range
how do I find date difference in months
Calculate number of days between two dates