Re: Calendar Issue



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
.