V
vidya
Hi,
I am having 2 date fields. fromDate and toDate. And I want to find out
the number of days that comes under this range. For this,
I am using java.util.GregorianCalendar().
I am adding the code also..
java.util.Calendar dat1 = new java.util.GregorianCalendar();
dat1.clear();
dat1.set(year,month,date);
dat1.complete();
But this is not working. The error is like no matching method is found
for complete();
I thought that i will get the value of the constant variable
DAY_OF_YEAR and use it, but how do we set the value of that variable?
I am crating a new calendar object and with year month and date. Isn't
that enough?
Any help is appreciated.
Regards,
Vidya
I am having 2 date fields. fromDate and toDate. And I want to find out
the number of days that comes under this range. For this,
I am using java.util.GregorianCalendar().
I am adding the code also..
java.util.Calendar dat1 = new java.util.GregorianCalendar();
dat1.clear();
dat1.set(year,month,date);
dat1.complete();
But this is not working. The error is like no matching method is found
for complete();
I thought that i will get the value of the constant variable
DAY_OF_YEAR and use it, but how do we set the value of that variable?
I am crating a new calendar object and with year month and date. Isn't
that enough?
Any help is appreciated.
Regards,
Vidya