Results 1 to 3 of 3
Thread: period function
- 09-04-2010, 05:45 PM #1
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
period function
Dear All,
is there any java function can I use to get value of the period (month & year)
if period - 1 then it should be last month
if period + 1 then it should be next month
it also must be considered if currently in january.. then if period - 1 it should be december last year ..
and also if it's on december then if period + 1 then it should be next year.
any idea or java function can I use for doing this?
- 09-04-2010, 07:08 PM #2
Java doesn't have functions. You're probably looking for a class.
Look at the Calendar class and its relatives for working with dates.
- 09-05-2010, 06:24 PM #3
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
Similar Threads
-
take the total time for particular period
By baktha.thalapathy in forum New To JavaReplies: 3Last Post: 06-08-2010, 10:42 AM -
Possible? Callback function passed as arguments to another function
By TreyAU21 in forum Advanced JavaReplies: 3Last Post: 12-04-2009, 04:08 PM -
Addition of period to dates
By jboy in forum New To JavaReplies: 4Last Post: 09-14-2009, 01:23 PM -
Have a period in string, how to make it look nicer
By JordashTalon in forum New To JavaReplies: 6Last Post: 03-06-2009, 01:23 AM -
signing applets for a period of time
By sandeepk84@gmail.com in forum Java AppletsReplies: 0Last Post: 12-04-2007, 02:34 PM
Bookmarks