Java Date to String dateTo14String(Date date)

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

Description

date To String

License

Open Source License

Declaration

public static String dateTo14String(Date date) 

Method Source Code

//package com.java2s;

import java.util.Date;

public class Main {

    public static String dateTo14String(Date date) {
        if (date == null) {
            return null;
        }//from  w w w . j a  v a  2s. com

        java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("yyyyMMddHHmmss");

        return dateFormat.format(date);
    }
}

Related

  1. Date2StringSec(Date date)
  2. datetime(Date date)
  3. dateTime2String(Date dateTime, DateFormat dateFormat)
  4. dateTimeISO(final java.util.Date date)
  5. dateTimeToZero(Date date)
  6. dateToBOMCStrDate(Date date)
  7. dateToCalendar(Date fecha, String formato)
  8. dateToDateString(Date date, Locale locale)
  9. dateToDDMMYYYYStr(Date dateTime)