Java Date to String DateToStringByformat2(Date date)

Here you can find the source of DateToStringByformat2(Date date)

Description

Date To String Byformat

License

Open Source License

Declaration

public static String DateToStringByformat2(Date date) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static final SimpleDateFormat format2 = new SimpleDateFormat("yyyyMMddHHmmss");

    public static String DateToStringByformat2(Date date) {
        return format2.format(date);
    }/*from  w  ww .ja va 2s. c o  m*/
}

Related

  1. dateToString(java.util.Date currdate, String strFormat)
  2. dateToString(String date, String format)
  3. dateToString(String str, DateTimeFormatter dateTimeFormatter)
  4. dateToString1(Date date, String formatIn)
  5. dateToString_yyyyMMddHHmmssSSS(Date date)
  6. dateToStringFecha(Date fecha)
  7. dateToStringFormat(Date dt, String format)
  8. dateToStringShort(Date date)
  9. dateToStringTemporalCoverage(Date date)