Here you can find the source of getMinus1Day(Date date)
public static Date getMinus1Day(Date date)
//package com.java2s; /*/*w ww . j a v a2 s. c o m*/ * CommonUtil.java * * Copyright 2007 NHN Corp. All rights Reserved. * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ import java.util.Calendar; import java.util.Date; public class Main { public static Date getMinus1Day(Date date) { if (date == null) { return null; } Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.add(Calendar.DATE, -1); return cal.getTime(); } }