Results 1 to 3 of 3
  1. #1
    kalyana is offline Member
    Join Date
    Aug 2010
    Posts
    25
    Rep Power
    0

    Default Please help ...!!Calendar class

    hi all ..
    i want to count gap between date , but i don't know how to do that .
    for example : first i choose : 10 Oct 2010 and then i choose 30 Dec 2010 (or another years ),How many deviation for both of date ? is there any one can show me the way ...

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    Hint: Calendar#getTimeInMillis.

    I presume you know how many milliseconds there are in a day.

    db

  3. #3
    kalyana is offline Member
    Join Date
    Aug 2010
    Posts
    25
    Rep Power
    0

    Default

    i have try TimeInMillis later : 2nd day - 1st day .and then i devide with 1000*60*60*24 . so i found day for the gap .is there work well and accurate for any situation ? thanks

Similar Threads

  1. plz help me with this class, calendar
    By hamed in forum New To Java
    Replies: 6
    Last Post: 09-06-2010, 10:58 PM
  2. How to use Calendar class
    By JavaBean in forum Java Tip
    Replies: 1
    Last Post: 06-26-2008, 03:09 PM
  3. How to set values with Calendar class ?
    By mohiit in forum New To Java
    Replies: 3
    Last Post: 05-14-2008, 04:21 AM
  4. How to use Calendar class
    By Java Tip in forum java.util
    Replies: 0
    Last Post: 04-04-2008, 02:33 PM
  5. Java Calendar Class
    By vasu18 in forum New To Java
    Replies: 0
    Last Post: 12-06-2007, 10:45 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
  •