Java String to Date getTodateString()

Here you can find the source of getTodateString()

Description

get Todate String

License

Open Source License

Declaration

public static String getTodateString() 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static SimpleDateFormat yyyyMMddHH_NOT_ = new SimpleDateFormat("yyyyMMdd");

    public static String getTodateString() {
        String str = yyyyMMddHH_NOT_.format(new Date());
        return str;
    }//from w  ww .j  a va2  s. c  om
}

Related

  1. getStringToDate(String date, String inputDateFormat)
  2. getStringToDate(String pValue, String pDateFormat)
  3. getStringToDate(String str)
  4. getStringToDateFull(String da)
  5. getStringToDateTime(String dateStr, String formatStr)
  6. humanDateToDate(String date)
  7. LongToDateString(long l)
  8. longToDateString(long l)
  9. longToDateStringDefault(long time)