Java Timestamp Format getTimeStampFormat(Date date)

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

Description

get Time Stamp Format

License

Open Source License

Declaration

public static String getTimeStampFormat(Date date) 

Method Source Code

//package com.java2s;
/*/*from  ww  w .jav  a  2  s.  c o  m*/
 * ==================================================================
 * The Huateng Software License
 *
 * Copyright (c) 2008-2012 TOPSCF  All rights reserved.
 * ==================================================================
 */

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getTimeStampFormat(Date date) {
        if (date == null)
            return null;

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(
                "yyyy-MM-dd-HH.mm.ss.SSSSSS");
        return simpleDateFormat.format(date);
    }
}

Related

  1. getTimestamp(boolean useTwentyFourFormat)
  2. getTimeStamp(String format)
  3. getTimestamp(String format)
  4. getTimestampFormat()
  5. getTimeStampFormat(Date date)
  6. getTimestampFormat(long time)
  7. sortedTimestampFormat(Date date)
  8. stringConvertToTimestamp(String value, String format)
  9. TimeStamp2Date(long timestampString, String formats)