Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Calculate milliseconds between two dates not counting weekends?

  1. #1
    Member
    Join Date
    Feb 2013
    Posts
    78
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Calculate milliseconds between two dates not counting weekends?

    I think the title says it all. I have two Date objects and I need to calculate the time between them in milliseconds not counting saturday and sunday.

    EDIT: nevermind, i got it
    Last edited by sci4me; April 30th, 2014 at 08:25 PM.


  2. #2
    Junior Member
    Join Date
    May 2014
    Location
    Rome
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Calculate milliseconds between two dates not counting weekends?

    Quote Originally Posted by sci4me View Post
    EDIT: nevermind, i got it
    Yeah, you got it, but maybe someone else out there needs to know how to, and if you write how you did maybe you make someone else happy, don't you think?
    Please forgive any grammatical error, I'm an Italian student and I'm still studying English.
    Using NetBeans IDE 8.0 (only because I can't make Eclipse work on my old laptop)

Similar Threads

  1. Disable past dates in datepicker
    By amwangi4 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: March 25th, 2013, 07:04 AM
  2. Comparing Two Dates
    By aussiemcgr in forum What's Wrong With My Code?
    Replies: 3
    Last Post: June 27th, 2011, 02:09 PM
  3. Testing if dates are real or not.
    By cardsfan33 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 22nd, 2011, 07:46 PM
  4. Java/Excel integration, Reading in Dates
    By aussiemcgr in forum Java Code Snippets and Tutorials
    Replies: 0
    Last Post: July 16th, 2010, 08:38 AM
  5. UTC Dates
    By PedroCosta in forum Java Theory & Questions
    Replies: 4
    Last Post: April 1st, 2010, 11:39 AM