Tuesday, December 28, 2004

Calculating Yesterday's Date

private Date yesterday() {
long calcTime = System.currentTimeMillis() - 86400000L;
Date yesterday = new Date(calcTime);
return yesterday;
}

No comments:

Post a Comment