Results 1 to 8 of 8
- 03-06-2012, 06:19 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
Checking date lying between two days of month
Dear All,
I have got very interesting requirement in my project. I need ti check if a date is lying between two days.
Let me elaborate :) Requirement is that I will have two numbers say 25th and 2nd in my database(these days are dynamic so I am putting these in DB, can not hard code) , I need to check if my sysdate is lying in between 25th and 2nd of any month.
Please help me in this as this is very crucial for me and also I am not getting any solution for this.
Thanks in advance.
- 03-06-2012, 06:23 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: Checking date lying between two days of month
How would you do this by hand?
Please do not ask for code as refusal often offends.
- 03-06-2012, 06:26 PM #3
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
Re: Checking date lying between two days of month
Sorry Tolls, could not get you!!!
Am I able to make you understand my requirement or do you want more clarification.
- 03-06-2012, 06:29 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: Checking date lying between two days of month
Yes, I know what you need, but see my signature.
How would you do this by hand?
That will give you your algorithm.
Which will then give you your code.Please do not ask for code as refusal often offends.
- 03-06-2012, 06:31 PM #5
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
Re: Checking date lying between two days of month
Just suggest for some algo only if you can help in that way!!! :)
Or if is it fine with you can you please suggest what all APIs we can use.
I have tried Date and Calendar API but failed to achieve.
- 03-06-2012, 07:23 PM #6
Re: Checking date lying between two days of month
Is this your problem: You have three dates and you want to be able to compare them to see if one is between the other two?
- 03-06-2012, 09:48 PM #7
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,377
- Blog Entries
- 7
- Rep Power
- 17
Re: Checking date lying between two days of month
I'm unable to see anything advanced in this thread; I'm moving it to the New To Java section.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 03-07-2012, 09:53 AM #8
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: Checking date lying between two days of month
Please don't PM for solutions.
This is an open forum for handling problems, not a private service.
Show us the code you have tried and maybe we can point out where you are going wrong.
WHen doing that please use [code] tags [/code] and also give any errors you get, highlighting what line(s) they are occurring on.Please do not ask for code as refusal often offends.
Similar Threads
-
days remaining to a particular date
By aconti in forum New To JavaReplies: 1Last Post: 05-30-2011, 12:16 PM -
want the first date and last date of each month
By javastuden in forum New To JavaReplies: 3Last Post: 02-24-2010, 10:31 AM -
how to get 10 days prior system date
By vanitha nanda in forum Java AppletsReplies: 7Last Post: 09-27-2009, 01:45 AM -
adding days to a date
By karen.tao in forum Java AppletsReplies: 13Last Post: 09-13-2009, 09:05 PM -
date one month back
By senzacionale in forum New To JavaReplies: 1Last Post: 12-24-2007, 09:02 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks