Java Tomorrow tomorrow()

Here you can find the source of tomorrow()

Description

tomorrow

License

Open Source License

Declaration

public static String tomorrow() 

Method Source Code

//package com.java2s;
/*// ww  w.  j  a v a  2  s . c om
 * Copyright 2010 Mttang.com All right reserved. This software is the
 * confidential and proprietary information of Mttang.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Mttang.com.
 */

import java.text.SimpleDateFormat;

public class Main {
    static final SimpleDateFormat yyyyMMdd = new SimpleDateFormat("yyyy-MM-dd");

    public static String tomorrow() {
        java.util.Calendar cal = java.util.Calendar.getInstance();
        cal.add(java.util.Calendar.DAY_OF_MONTH, 1);
        return yyyyMMdd.format(cal.getTime());
    }
}

Related

  1. getTomorrow(Date date1)
  2. getTomorrowDate(Date date)
  3. getTomorrowDateAsString()
  4. getTomorrowOnlyDate()
  5. isTomorrow(Date date)