Forums Register Login

Calender problem

+Pie Number of slices to send: Send
hi friends,

i want to have two calendar in the same problem,i want to perform different action on both the calendar,and it should't affect each other.
i am trying to use folllowing code
Calendar calendar = new GregorianCalendar();
Calendar calendar1 = new GregorianCalendar();

to create two calendar,and i am performing different action but its effecting
each other,how to avoid it

please reply
+Pie Number of slices to send: Send
Hi
Could you please paste the code, where the references are exactly affecting each other, so that it gets easy to find a solution ?
+Pie Number of slices to send: Send
I made this test and the instances seems to work independently...
+Pie Number of slices to send: Send
Let it be :
Calendar calendar = new GregorianCalendar();
Calendar calendar1 = new GregorianCalendar1();

with GregorianCalendar1() same as GregorianCalendar() try it...
+Pie Number of slices to send: Send
 

Originally posted by Neerav Narielwala:
Let it be :
Calendar calendar = new GregorianCalendar();
Calendar calendar1 = new GregorianCalendar1();

with GregorianCalendar1() same as GregorianCalendar() try it...



And what is GregorianCalendar1 ??? from where do you get it... or you tryin to make another class as GregorianCalendar1.
I'm gonna teach you a lesson! Start by looking at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1012 times.
Similar Threads
GregorianCalendar -- Calendar.SECOND
Protected Fields
Calendar roll() not working
GregorianDate and week_number
Date range
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 02:27:00.