Re: Calendar Issue
- From: Lew <noone@xxxxxxxxxxxxx>
- Date: Fri, 07 Nov 2008 01:51:26 -0500
jagadesh wrote:
Thanks For The Reply , Lee
Lets Think In A Other Way .
private Static Calendar cal=Calendar.getInstance();
public static Calendar getCalendar() {
if(cal.get(Calendar.DATE) >
Calendar.getInstance().get(Calendar.DATE)) {
Use The Calendar Instance "cal"
} else {
Other Wise Create a new Calendar Instance and use That
}
so that i will check the EveryTime i Made a call to this method. i
would get the correct instances if date changes ,
is it a good one [ JUST A TAUGHT ]
Why don't you try it in your Java environment first, make sure that it works, then post working code?
--
Lew
.
- Follow-Ups:
- Re: Calendar Issue
- From: jagadesh
- Re: Calendar Issue
- References:
- Calendar Issue
- From: jagadesh
- Re: Calendar Issue
- From: Arne Vajhøj
- Re: Calendar Issue
- From: jagadesh
- Re: Calendar Issue
- From: Lew
- Re: Calendar Issue
- From: jagadesh
- Calendar Issue
- Prev by Date: Re: Calendar Issue
- Next by Date: Re: Calendar Issue
- Previous by thread: Re: Calendar Issue
- Next by thread: Re: Calendar Issue
- Index(es):