Hello!
I can convert from the given date,month and year to a day of year with the following code.
GregorianCalend ar cal = (GregorianCalen dar)Calendar.ge tInstance();
cal.set(1996,0, 1);
System.out.prin tln(cal.get(cal .DAY_OF_YEAR));
Answer : 1
My question is now i want to do opposite for eksempel i want to convert from the given year(1996) and a day of year(256) to date. How i can do that?
I need help .
Malik
I can convert from the given date,month and year to a day of year with the following code.
GregorianCalend ar cal = (GregorianCalen dar)Calendar.ge tInstance();
cal.set(1996,0, 1);
System.out.prin tln(cal.get(cal .DAY_OF_YEAR));
Answer : 1
My question is now i want to do opposite for eksempel i want to convert from the given year(1996) and a day of year(256) to date. How i can do that?
I need help .
Malik
Comment