Java Date Format As fmtDate(Date date)

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

Description

fmt Date

License

Open Source License

Declaration

public static String fmtDate(Date date) 

Method Source Code


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

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

public class Main {

    public static String fmtDate(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(date);
    }//from   w w  w .  ja v  a  2s.  co  m
}

Related

  1. fmt(double d)
  2. fmt(double num, int minIntDigits, int maxFracDigitis)
  3. fmt(long count)
  4. fmt(String pattern, Object... args)
  5. fmtBdToString(BigDecimal bd, DecimalFormat df)
  6. fmtDate(Date date)
  7. fmtDateTime(final Date dateTime, final String simpleDateTimeFormat)
  8. fmtMsg(final String fmt, final String arg)
  9. fmtNumStringToDouble(String s)