Skip to content

Instantly share code, notes, and snippets.

@gbougeard
Created November 13, 2013 16:04
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 gbougeard/7451564 to your computer and use it in GitHub Desktop.
Save gbougeard/7451564 to your computer and use it in GitHub Desktop.
dailyWTF
int cptDays = 0;
while (startPeriodCal.getTimeInMillis() < endPeriodCal.getTimeInMillis()) {
startPeriodCal.add(Calendar.DATE, 1);
cptDays = cptDays + 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment