From int to Date
Hi all
I have an int that rappresent a number of day of year.
I obtain it with the following code:
Date date = new Date();
date = DateUtil.getDate(pDate, "yyyyMMdd");
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
int numberOfDay = calendar.get(calendar.DAY_OF_YEAR);
Now the question:
How can i have the day by the int or how can i do the opposite process?
Thank's in advance.
Miche

