Java Timestamp Format format(Date timestamp, String format)

Here you can find the source of format(Date timestamp, String format)

Description

format

License

Open Source License

Declaration

private static String format(Date timestamp, String format) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    private static String format(Date timestamp, String format) {
        SimpleDateFormat formatter = new SimpleDateFormat(format);
        return formatter.format(timestamp);
    }//from   w  ww.j av a  2s . c  o  m
}

Related

  1. format(Date aTs_Datetime)
  2. format(Date date)
  3. format(Date date, String format)
  4. format(Date time, String pattern)
  5. format(Date timestamp)
  6. Format(DateFormat format, Timestamp time)
  7. format(final Date date)
  8. format(final long unixTimeStamp)
  9. format(long timestamp)