Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Jaeder42
Created July 5, 2016 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jaeder42/b49aea6fde9951a44901e0a4a78dfc9b to your computer and use it in GitHub Desktop.
Save Jaeder42/b49aea6fde9951a44901e0a4a78dfc9b to your computer and use it in GitHub Desktop.
Calendar c = Calendar.getInstance();
for(int i = 0; i < days; i++){
int daysToAdd = i - (i-1);
c.add(Calendar.DAY_OF_YEAR, daysToAdd);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment