Java Time to String timeStr(Date _Date)

Here you can find the source of timeStr(Date _Date)

Description

time Str

License

Open Source License

Declaration

public static String timeStr(Date _Date) 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;
import java.util.Locale;

public class Main {

    public static String timeStr(Date _Date) {
        if (_Date == null)
            return "";
        SimpleDateFormat _SimpleDateFormat = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss", Locale.SIMPLIFIED_CHINESE);
        return _SimpleDateFormat.format(_Date);
    }/* w ww  .j  a v  a2 s  .c  o m*/
}

Related

  1. time2String(Date time)
  2. time2string(double t)
  3. time2String(long time)
  4. timesAreEqual(Date date1, Date date2)
  5. timeString()
  6. timeString(double time)
  7. timeString(long tickNo, long offset)
  8. timeString2Date(String time)