datetime - Android: Getting date using day of the year number -
how can create date
integer representing day of year?
you can set day of year in calendar object, can date object it:
calendar cal = calendar.getinstance();// make sure it's right year cal.set(calendar.day_of_year, dayofyear); date date = cal.gettime();
Comments
Post a Comment