This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how to Calculate fiscal month if start year and end date is given using JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to Calculate fiscal month if start year and end date is given using JAVA" Watch "how to Calculate fiscal month if start year and end date is given using JAVA" New topic
Author

how to Calculate fiscal month if start year and end date is given using JAVA

shiva kr
Greenhorn

Joined: Dec 29, 2012
Posts: 2

I want to calculate the fiscal months between start year(e.g 2012) and end date(28/02/2014) and the fiscal year starts from october.


Regards,
shiva
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

The question is not so much related to Java as it is to finance and accounting. You need to TellTheDetails in order to expect help. If you know how you would do that by hand it would be valuable information here.

Welcome to the Ranch!


The quieter you are, the more you are able to hear.
shiva kr
Greenhorn

Joined: Dec 29, 2012
Posts: 2

for e.g the date given is 23/02/2014 and the start year as 2012 and fiscal year starts from OCTOBER month
then we have to consider whole FY2012,FY2013 and (5/12)FY2014.question is how to calculate fiscal month number 5?
How 5 is coming i will explain. from OCT(2013),NOV(2013),DEC(2013),JAN(2014) till FEB(2014).so total 5 fiscal months completed till the given date.
so this i want to calculate using java.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 10926
    
  12

"for example" isn't really a spec. Sure, it may help illustrate what needs to be done, but it is NOT what is needed.

also...until you can explain how to calculate it in English (or any other Natural language), don't think in terms of java.

So...what difference does the start year make? If the start year had been 2000, wouldn't you still come up with 5 as the answer? You'd still count Oct - Feb of 2013/2014, getting five, right?


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to Calculate fiscal month if start year and end date is given using JAVA
 
Similar Threads
How is the job market now compared to six months ago?
Is H1B in demand ?
Calculate Fiscal year
java.sql.Timestamp question
Java calender get weeks in month, start date and enddate