Java Hour Format format(Date d)

Here you can find the source of format(Date d)

Description

format

License

Apache License

Declaration

public static String format(Date d) 

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 final DateFormat df = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss,SSS");

    public static String format(Date d) {
        return df.format(d);
    }//www .j  a va  2  s.  c om
}

Related

  1. format()
  2. format()
  3. format(Calendar date)
  4. format(Date d)
  5. format(Date d)
  6. format(Date date)
  7. format(Date date)
  8. format(Date date)