This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I need to set the start of year to a different date than 01/01/. Lets say I want to set the start date of the year to 23-02. I want the java calendar classes to return the fields e.g week days, month etc according to this new date.for example Calendar.get(Calendar.MONTH)) for above date should return 0 as it is the first month of my fiscal year.
What are you doing this for? Why not just use Math.random() to random numbers between 1 and 12 then have if else statements to set it so like if it comes up with 2 then the second Math.random() is only going to go between 1 and 28 or however many days there are in February. Unless you need to set something as a new date permanentaly then just do what others said.