File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Date.before() Function Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Date.before() Function" Watch "Date.before() Function" New topic
Author

Date.before() Function

Veena Ka
Greenhorn

Joined: Oct 08, 2011
Posts: 3
I Have this peice of code which I want to return true, if the date provided is before 31st march.

I have provided 05 feb of the same year. Still the function



keeps returning false. Can anybody please help?
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 530
Your variable names create some confusion, but I would expect a version of the March date to be included in the comparison, and I don't see it. Recheck what you're comparing.


Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8438

Welcome to the Ranch.
Can you show us the code for getWrksWorkDate?
Also, please check your private messages for an important administrative matter.

[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
Veena Ka
Greenhorn

Joined: Oct 08, 2011
Posts: 3
Ok I have gotton the fix. thank you
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Date.before() Function
 
Similar Threads
Problems with custom xsd:dateTime conversion
Date not working
Caldendar.before() method
How to get end week date from given start date??
Need to change Calendar to dd/mm/yyyy format