Java Date to String dateToyyyyMMddHHmmss(Date date)

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

Description

date Toyyyy M Mdd H Hmmss

License

Apache License

Declaration

private static String dateToyyyyMMddHHmmss(Date date) 

Method Source Code

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

import java.util.Date;

public class Main {
    private static String dateToyyyyMMddHHmmss(Date date) {
        java.text.DateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return df.format(date);
    }/*from ww w. j  a  v  a  2  s.co  m*/
}

Related

  1. dateToUTCDate(Date d)
  2. dateToUtcString(Date date)
  3. dateToW3c(Date d)
  4. dateToW3CDTF(Date date)
  5. dateToW3CDTF(Date date)