Re: Calendar Issue



jagadesh wrote:
so how can i rebuild this situation so that i can use less number of
calendar instances .

Don't bother. Just use as many Calendars as you need. Hanging on to instances for too long can interfere with garbage collection. Just create a new instance at need for each new date/time. If you need to re-use a particular time, for example, to enter the same exact time into different structures or database rows, then keep the same instance that represents that moment. When you need to create a new moment, use a new Calendar (or Date).

--
Lew
.



Relevant Pages