Java Timestamp Format sortedTimestampFormat(Date date)

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

Description

sorted Timestamp Format

License

Apache License

Declaration

public static String sortedTimestampFormat(Date date) 

Method Source Code


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

import java.text.DateFormat;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static String sortedTimestampFormat(Date date) {
        return getSortedTimetampFormat().format(date);
    }//from  w ww.j  a  va 2s .c o  m

    public static DateFormat getSortedTimetampFormat() {
        return new SimpleDateFormat("yyyyMMddHHmmss");
    }
}

Related

  1. getTimestamp(String format)
  2. getTimestampFormat()
  3. getTimeStampFormat(Date date)
  4. getTimeStampFormat(Date date)
  5. getTimestampFormat(long time)
  6. stringConvertToTimestamp(String value, String format)
  7. TimeStamp2Date(long timestampString, String formats)
  8. timeStamp2Date(String seconds, String format)
  9. Timestamp2DDMMYYYY(java.sql.Timestamp ts)