Java Date Format dateFormat3(Date date)

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

Description

date Format

License

Open Source License

Declaration

public static String dateFormat3(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 SimpleDateFormat sdf3 = new SimpleDateFormat("yyyy/MM/dd HH:mm");

    public static String dateFormat3(Date date) {
        if (date == null) {
            return null;
        } else {// ww  w  .  j a v  a2 s.c o m
            return sdf3.format(date);
        }
    }
}

Related

  1. dateFormat(String df, TimeZone timeZone)
  2. dateFormat(String format, java.util.Date date)
  3. dateFormat(String format, java.util.Date date, String tz, Locale locale)
  4. dateFormat(String format, String defaultFormat)
  5. dateformat(String text, String format)
  6. dateFormat4yyyyMMdd()
  7. dateFormatCheck(String source)
  8. dateFormatCheck(String source, String format)
  9. dateformate(String reg, Date newdate)