Results 1 to 2 of 2
  1. #1
    dayalan is offline Member
    Join Date
    Mar 2011
    Posts
    1
    Rep Power
    0

    Default getting a date value from db and subtracting it in jsp

    Hi Guys,

    Im a newbie for java and also to this forum,.I want to subtract 7 days from a Date(Fetched from database) and have to get that subtracted date..(eg.) if my database date is 11-03-2011., i have to subtract 7 days from it. and i hav to get as 04-03-2011 as output..i tried but couldn't get it..pls help me as am new to this field...

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Subtracting 2d Arrays
    By Spyderpig in forum New To Java
    Replies: 9
    Last Post: 03-11-2011, 06:12 AM
  2. Subtracting Strings
    By ravian in forum New To Java
    Replies: 7
    Last Post: 10-08-2009, 07:26 PM
  3. Subtracting Strings
    By lazygun247 in forum New To Java
    Replies: 6
    Last Post: 03-29-2009, 11:05 PM
  4. Compare date input to database with current date
    By hungleon88 in forum Advanced Java
    Replies: 2
    Last Post: 11-25-2008, 09:10 AM
  5. Creating a Gregorian Calendar using a Date object gives date - 1
    By prachi_goliwadekar in forum New To Java
    Replies: 1
    Last Post: 05-08-2008, 09:32 PM

Posting Permissions

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