• Post Reply Bookmark Topic Watch Topic
  • New Topic

Date Range check  RSS feed

 
amit ang
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I want to use a check for the overlapping of date range i.e.., From-Date to To-Date. Using the long to store in database for database independency.
Now when i have some From-Date and To-Date stored in database and when user enters the from-date and to-date, ijust want to cross check the one. Can any one suggest me a good algorithm for this problem.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by amit ang:
[...] ijust want to cross check the one. [...]

Sorry, I don't understand this part of your question. What specifically do you want to do? Can you please elaborate?
 
amit ang
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Actually i want to check the date range overlapping has i said above. I have tried some check on the same. But want to have a efficent algo for the same.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by amit ang:
Actually i want to check the date range overlapping has i said above. I have tried some check on the same. But want to have a efficent algo for the same.

Please post what you did try (actual code would be best) and why you think it doesn't meet your performance requirements.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!