Skip to content

Instantly share code, notes, and snippets.

@gbougeard
Created November 13, 2013 16:04
Show Gist options
  • Select an option

  • Save gbougeard/7451564 to your computer and use it in GitHub Desktop.

Select an option

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