Java Tomorrow getTomorrowOnlyDate()

Here you can find the source of getTomorrowOnlyDate()

Description

get Tomorrow Only Date

License

Apache License

Return

yyyy-MM-dd

Declaration

public static String getTomorrowOnlyDate() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Date;

import java.util.Locale;

public class Main {
    /**/*from   www.j ava 2 s  .com*/
     * yyyy-MM-dd Comment for <code>onlyDateFmt</code>
     */
    public static final SimpleDateFormat onlyDateFmt = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA);

    /**
     * @return yyyy-MM-dd
     */
    public static String getTomorrowOnlyDate() {
        Date d = new Date();
        return onlyDateFmt.format(new Date(d.getTime() + 24 * 60 * 60 * 1000));
    }
}

Related

  1. getTomorrow()
  2. getTomorrow()
  3. getTomorrow(Date date1)
  4. getTomorrowDate(Date date)
  5. getTomorrowDateAsString()
  6. isTomorrow(Date date)
  7. tomorrow()