Results 1 to 4 of 4
  1. #1
    rasikow is offline Member
    Join Date
    Dec 2008
    Posts
    3
    Rep Power
    0

    Exclamation I want to fetch last 7 days records in java

    Hi all,

    I want to fetch the records added during last weeks. so how to get last week dates?

    Thanks in advance

    - Gnaniyar Zubair

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    Calendar add method with Calendar.DAY_OF_MONTH as the field and -7 as the amount.

  3. #3
    rasikow is offline Member
    Join Date
    Dec 2008
    Posts
    3
    Rep Power
    0

    Default I want to fetch last 7 days records in java

    Thanks masijade

    But i got only day of that Month. But i need all records added during last week.

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    Okay, so I showed you how to get the date from 7 days ago, how would you then modify that to get the date from 6 days ago?

Similar Threads

  1. Replies: 8
    Last Post: 01-06-2011, 06:33 PM
  2. Fetch Webpage - not working
    By jodyflorian in forum New To Java
    Replies: 5
    Last Post: 10-10-2008, 02:49 PM
  3. How to spool More than 65000 records in IE or Excel in Java
    By santhoskumara in forum Advanced Java
    Replies: 1
    Last Post: 05-06-2008, 04:42 AM
  4. No fo days between two dates
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-28-2008, 09:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •