File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How would you doJava quarterly calculations? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

How would you doJava quarterly calculations?

Sherin Branch

Joined: May 15, 2007
Posts: 2
posted Today 4:21 PM
How do you compute quartely totals in Java.

Quarters(1Oct - 31 Dec. ;1 Jan - 31Mar; 1 Apr - 30 Jun.)

For example: compute the days idle in the first quarter(1Oct - 31Dec.)

The user will only enter month and year. I will check to see what quarter the entered month and year falls into. If the month and year falls in the first quarter(1 Oct-31 Dec.) pull all the idle days values out of the database for that quarter.

Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Okay, you need to stop making new threads about this, and instead please follow up in the original thread. Thank you.

"I'm not back." - Bill Harding, Twister
It is sorta covered in the JavaRanch Style Guide.
subject: How would you doJava quarterly calculations?
Similar Threads
Date API
Date Calculations
a few questions about the IT biggies from a fresher
Java quarterly calculation
Finding number of days in a month confusion