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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -